I am writing a Cocoa framework in Objective-C and would like to use a documentation writer to generate the API reference. For .NET, it is easy to include examples using:
/// <example>
/// <code lang="c#">
/// Console.WriteLine("Hello, World!");
/// </code>
/// </example&开发者_运维问答gt;
Is this possible when using Apple's HeaderDoc tool, and if so, how would it be done?
If it is not possible, how would I do it when using Doxygen?
For those who go with Apples already installed tool "headerdoc", it can look like this:
/*!
   <pre>
   @textblock
   - (void)foo {
      // bar
   }
   @/textblock
   </pre>
*/
Okay - I've got the answers! I've chosen to go with Doxygen:
/**
 \code
 NSLog(@"Hello, World!");
 \endcode
*/
 
         
                                         
                                         
                                         
                                        ![Interactive visualization of a graph in python [closed]](https://www.devze.com/res/2023/04-10/09/92d32fe8c0d22fb96bd6f6e8b7d1f457.gif) 
                                         
                                         
                                         
                                         加载中,请稍侯......
 加载中,请稍侯......
      
精彩评论