gpalex
gpalex

Reputation: 852

Doxygen and preformatted text in \todo

I am trying to use some preformated text in a \todo (because I need a a font with a fixed character size). So I have tried using <pre></pre>, <tt></tt>, <code></code> ...

I indeed get a fixed width font, but the problem is that if I put a \todo flag before that block, the \todo will be empty (it will ignore the block starting with <pre> <tt> or <code>)

Just to be clear :

EDIT: unfortunatly I can't upload images (not enough reputation)

Upvotes: 0

Views: 2344

Answers (1)

DRH
DRH

Reputation: 8356

You may need to set the formatting on a line-by-line basis, instead of attempting to preformat the entire block. For example, you could specify:

* @todo
*     1. <tt>First thing</tt>
*     2. <tt>Second thing</tt>

Alternatively, if you have markdown support enabled, you should be able to specify:

* @todo
*     1. `First thing`
*     2. `Second thing`

With markdown support, it appears you can also use a fenced code block with @todo:

* @todo
* ~~~~
*     1. First thing
*     2. Second thing
* ~~~~

Upvotes: 2

Related Questions