Henkk
Henkk

Reputation: 649

Is it possible to define an example in Doxygen inside the comment?

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

Answers (1)

Henkk
Henkk

Reputation: 649

Using a \code tag works good for me:

<b>Example</b>
\code{.c}
...
\endcode

Upvotes: 1

Related Questions