I usually need to write many short code in code comment like this
. Is this possible to use in Apple's Headerdoc? Because this type of code notation is generally used heavily, so i believe there's a convenient way to do this instead of marking HTML tags.
How to mark code snippet in Headerdoc?
1k Views Asked by eonil At
5
There are 5 best solutions below
0

You need to format a block of code use: @code
&@endcode
tags like:
/**
* @code
* [myObj myMethod];
* @endcode
*/
If you want to format a single word @c
is enough, like:
/**
* @c is enough
*/
1

Within your HeaderDoc, you can use this formatting:
@code
// code text
while (someCondition) {
NSLog(@"Hello");
doSomething();
}@endcode
Last line text.
I ended up with using
@c
.