HELP - codeCmd
HelpCommand ReferencecodeCmd
Description  
Illustrating code in the documentation (code, endcode )
The \code and \endcode tags enclose a section that is to be formatted as code, similar to the \example, \endexample tags. The code is parsed with DoxyS codeparser and if possible links are made to classes, functions etc.
Syntax
\code
int main()
{
  printf("Hello world!\n");
}
\endcode

Output
int main()
{
  printf("Hello world!\n");
}

See also
  • preCmd for raw formatting of text.
  • EscapeSpecialCharsCmd for writing the special */.
  • HowToDocument::InlineFormattedCode