Reputation: 649
It looks like the only way to define an example in doxygen is to put it in a separate file. The documentation can be found here.
Is it possible to define the example directly inside the doxygen comment?
Upvotes: 1
Views: 575
Reputation: 649
Using a \code
tag works good for me:
<b>Example</b>
\code{.c}
...
\endcode
Upvotes: 1