Page 1 of 1

Doxygen syntax highlighting

Posted: Tue May 03, 2011 11:19 am
by DSP_Programmer
Hi,

I use CL 2793 on Win 7 and a file with *.c extension.

I try to have a different syntax coloring for a doxygen multiline C-comment section:

/**
doxygen comment here
*/

but always get the coloring as for regualar C-Comments in writing:

/*
C comment here
*/

I managed to get doxygen keywords (like @todo, ...) to have a different color, but not a whole multiline section /** ... */.

Is there anything I can do about this (within the syntax coloring configurations)?

Thanks and best regards.

Re: Doxygen syntax highlighting

Posted: Wed May 04, 2011 1:22 pm
by nemesis
hej.

in 'settings -> syntax highlights and fonts -> c++' there are four different comment color variables.
'common c style comment' is for /* test */
'common c++ style comment' is for // test
'doxygen c style comment' is for /** test */
'doxygen c++ style comment' is for /// test

regards,
nem

Re: Doxygen syntax highlighting

Posted: Wed May 04, 2011 1:27 pm
by DSP_Programmer
Hi,

thanks for the reply but I don't have an entry of 'doxygen c style comment' (see screenshot), I only have 'Doxygen C++ style comment'. Any ideas?

regards.

Re: Doxygen syntax highlighting

Posted: Wed May 04, 2011 1:33 pm
by nemesis
i checked both revisions i use (4375 on linux and 4778 on win7) and both have it. your revision (2793) is pretty dated. it probably got introduced later so i would recommend updating (even apart from the comment color thing ;) ).

regards,
nem

Re: Doxygen syntax highlighting

Posted: Wed May 04, 2011 1:48 pm
by DSP_Programmer
Hi,

ok, I found the problem. My "lexer" files were not up to date. After updating them everything works fine. And the rev. is 4798 (not 27..).

Thanks.