0

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>

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?

BWHazel
  • 1,474
  • 2
  • 18
  • 31

2 Answers2

4

For those who go with Apples already installed tool "headerdoc", it can look like this:

/*!
   <pre>
   @textblock
   - (void)foo {
      // bar
   }
   @/textblock
   </pre>
*/
polesen
  • 713
  • 1
  • 6
  • 18
2

Okay - I've got the answers! I've chosen to go with Doxygen:

/**
 \code
 NSLog(@"Hello, World!");
 \endcode
*/
BWHazel
  • 1,474
  • 2
  • 18
  • 31