Doxygen: Lists (original) (raw)

Doxygen provides a number of ways to create lists of items.

Using dashes

By putting a number of column-aligned minus (-) signs at the start of a line, a bullet list will automatically be generated. Instead of the minus sign also plus (+) or asterisk (*) can be used.

Numbered lists can also be generated by using a minus followed by a hash (#) or by using a number followed by a dot.

Lists with as indicator a checked or unchecked check box are possible when having a minus followed by optional spaces and followed by [ ] for an unchecked check box and [x] or [X] for a checked check box.

Nesting of lists is allowed and is based on indentation of the items.

Here is an example:

/*!

The result will be:

A list of events:

More text here.

If you use tabs for indentation within lists, please make sure that TAB_SIZE in the configuration file is set to the correct tab size.

You can end a list by starting a new paragraph or by putting a dot (.) on an empty line at the same indentation level as the list you would like to end.

Here is an example that speaks for itself:

/**

Using HTML commands

If you like you can also use HTML commands inside the documentation blocks.

Here is the above example with HTML commands:

/*!

  • More text here. */
  • Note

    In this case the indentation is not important.

    Using \arg or \li

    For compatibility with the Qt Software's internal documentation tool qdoc and with KDoc, Doxygen has two commands that can be used to create simple unnested lists.

    See \arg and \li for more info.

    Go to the next section or return to theindex.