在delphi代码编辑界面,当鼠标移到一个函数上面时,会弹出提示信息提示该函数的“函数出处、parameters、returns”信息该提示信息可否自定义,我像增加提示比如函数function A.fun1(A1:integer):boolean   //功能注释
begin
  ...
end;当某处代码用到,fun1时,鼠标移上去会提示
"
declare in aparameters
  A1 
    system.integer
returns
  system.boolean能否增加增加显示提示信息:  “//功能注释”
"当然功能注释可以是任何方式,只要能实现就行,这样看代码就能方便的多

解决方案 »

  1.   


     /// <summary>
          ///   杀死进程
          /// </summary>
          /// <returns>
          ///   <para>
          ///     返回结果
          ///   </para>
          ///   <para>
          ///     0:成功
          ///   </para>
          ///   <para>
          ///     其他:失败
          ///   </para>
          /// </returns>
      

  2.   

    {............}这样试试
    另外Ls的是C的注释啊
      

  3.   

    自己想到个方法,delphi xe 可以用汉字名称变量了,把说明当做一个汉字名字的参数 呵呵
      

  4.   

    DelphiXE2  自带的  Documentation Insight Express 可以很方便的制作这样的注释以前的版本,可以手动配置注释--------------------------
    The above documentation is actually well-formatted XML. The <summary> tag is used to provide a short description on the code element. Each <param> tag tells us what the target parameter (specified by the name attribute) means. The <see> tag refers to a code  element. All of these tags will be explained in the section XML Documentation Tags Reference.The Delphi IDE and compiler can expand these tags to display live help hints and generate XMLDoc files. When you move mouse over a symbol in source code for seconds, a popup window with its LIVE documentation will be shown if the build-in Help Insight feature is enabled.It's very cool, isn't it? In addition, all XML Documentation comments could be folded in the RAD Studio XE2 to keep source code clean:Notes on XML usage:l If you want angle brackets to appear in the text of a documentation comment, use &lt; and &gt;. For example, the string "&lt;text in angle brackets&gt;" will appear as <text in angle brackets>. l The cref attribute in a tag means a reference to a code element. You should use this form in Delphi: “Namespace|Element Path”. e.g. <see cref=”Spring.Utils|TDriveInfo.GetDrives” /> l To reference a generic type or member as a target in the cref attribute, you may use curly braces around the "T". e.g. <see cref="Spring.Collections|IList {T}"/>. l All common HTML tags such as <p>, <b>, <i>, <u>, <a>, <img>, etc. should be also supported.  All XML tags could be divided into the following categories:l Section Tags Defines a top-level section in a topic. e.g. Summary, Res, Examples section.l Block Tags Adds a block to a section. e.g. a paragraph, an image or a code snippet.l Inline Tags Formats the effect of a text. e.g. bold, italic, underline, hyperlink.
      

  5.   

    嘿嘿,试试吧.
    支持!去cnpack上了解一下吧.
      

  6.   

    是  Delphi的   不过  用C 的看起来更明显