Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

doxygen markdown code blocks in blockquote

Is there any way to put code blocks as a blockquote with doxygen markdown? This is useful when quoting from reference books, etc. I tried the following, but it does not print the code in a fixed width font.

> Put the following line in your program:
>
>     printf("Hello, world.");

I would like that to appear like (I am using SO's markdown for illustration):

Put the following line in your program:

printf("Hello, world.");
like image 783
Masked Man Avatar asked Oct 20 '25 16:10

Masked Man


1 Answers

According to the doxygen manual for markdown, The last > in a block quote line must be followed by a space in order for the line to be seen as a block quote. In your example above, there is no space, so the code is not seen as a block quote. If instead you specified it as (note the extra space on line 2):

> Put the following line in your program:
> 
>     printf("Hello, world.");

It should be rendered correctly.

like image 161
DRH Avatar answered Oct 23 '25 08:10

DRH