Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Doxygen Table drawing

Tags:

doxygen

I would like to insert a ASCII art table (as below) in the documentation. The Markdown feature of doxygen comes in the way and messes it all up. I've tried to the HTML table and they are fine but the source document becomes unreadable then.

Can I somehow get doxygen not to process a section but still include it in the output file? Similar to here where 4 blanks allow to to inserted already formatted text in fixed width font.

 |-------------|-------------------------|---------------|
 |AUTO_NEW_OFF | Entry action            | LED_FLASH     |
 |             |                         | SEQ_OFF       |
 |-------------|-------------------------|---------------|
 |             | eXit action             |               |
 |-------------|-------------------------|---------------|
 |             |                         |               |
 |-------------|-------------------------|---------------|
 | OFF         | SEQ complete            |               |
 |-------------|-------------------------|---------------|

I think I can answer this myself already.

The Fenced Code Blocks ( 3 x ~) feature seems to work ok

~~~
|-------------|-------------------------|---------------|
| MAN_NEW_OFF | Entry action            | LED_FLASH     |
|             |                         | SEQ_OFF       |
|-------------|-------------------------|---------------|
~~~
like image 508
ahagele Avatar asked Oct 05 '22 00:10

ahagele


People also ask

How do I create a table in doxygen?

Doxygen supports two ways to put tables in the documentation. The easiest is to use the Markdown format as shown in Markdown Extensions section Tables. Although this format is easy to use and read, it is also rather limited. It supports only a simple grid of cells, while each cell is a single line of plain text.

Can doxygen generate markdown?

Including Markdown files as pagesDoxygen can process files with Markdown formatting.

What is doxygen in C++?

Doxygen is the de facto standard tool for generating documentation from annotated C++ sources, but it also supports other popular programming languages such as C, Objective-C, C#, PHP, Java, Python, IDL (Corba, Microsoft, and UNO/OpenOffice flavors), Fortran, and to some extent D.


1 Answers

An improvement on fenced code would be to surround the table with the doxygen commands @verbatim and @endverbatim.

If you use a "code" style, be that markdown's ~~~ or doxygen's @code, there's a chance that current or future versions of Doxygen will start trying to colour it in syntactically.

like image 82
Cheeseminer Avatar answered Oct 10 '22 01:10

Cheeseminer