Doxygen Highlight Parameter in Pre-condition
It would be nice if #
automatically linked to the function argument definition. However, I can't see anyway of doing this in the automatic link generation section of the doxygen manual.
Having looked at the documentation HTML source it seems that parameters seem to be simply styled as strong
and with the class paramname
. So something like
@pre <strong class="paramname">grid1</strong> and
<strong class="paramname">grid2</strong> must be the same size.
should give you the results you want. Clearly this is overly verbose to write out each time. However, you should be able to define a custom command, say \paramname
, to do this so you could just write
@pre \paramname{grid1} and \paramname{grid2} must be the same size.
Edit: This can be achieved with the configuration file alias
ALIASES += paramname{1}="<strong class="paramname">\1</strong>"