Comments color in CW MCU v10.1

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Comments color in CW MCU v10.1

Jump to solution
1,000 Views
zorrotz
Contributor III

Hello,

 

Working with CW MCU v10.1 if I write a C/C++ comment like /* comment */ or // comment the comment is displayed in the color selected for comments in the editor syntax coloring settings. But if I write a comment like /** comment */ or //! comment (that is, adding a third character after /* or //) the color of the comment is not the color selected for comments in the editor syntax coloring settings. What is the problem?

 

Thanks in advance.

Labels (1)
0 Kudos
1 Solution
545 Views
zorrotz
Contributor III

Thank you for the information.

View solution in original post

0 Kudos
6 Replies
545 Views
CrasyCat
Specialist III

Hello

 

  Did you install and enable a Doxygen plug in or any other documentation tool plug in?

  You can check that in Workspace default combo box inside of the Preferences > C/C++ > Editor page.

 

  If this is the case, the Documentation tool may support additional notation for comments and the syntax coloring is then managed by the documentation tool.

 

CrasyCat

0 Kudos
545 Views
zorrotz
Contributor III

Yes, I have enabled Doxygen. If I disable Doxygen the comments are displayed in the proper color. Thank you.

 

But if Doxygen is enabled, is it possible to change the color of the comments? (they are always in blue and I can't find any setting to change the color).

 

0 Kudos
545 Views
CrasyCat
Specialist III

Hello

 

Go to Preferences > C/C++ > Editor > Syntax Coloring page.

 

In the Element list box expand the Doxygen tree.

You should be able to set the color used to display DoxyGen single-line and multi-line comments as well as the color used to display DoxyGen tags.

 

CrasyCat

0 Kudos
545 Views
zorrotz
Contributor III

Hello,

 

In the Element list box I haven't the Doxygen tree. There are only Code, Assembly, Comments and Preprocessor.

0 Kudos
545 Views
CrasyCat
Specialist III

Hello

 

I check on the Internet and apparently you need CDT V7.0 or higher to get the ability to configure the color used to display Doxygen comments,

 

CodeWarrior MCU V10.1 is using CDT V5.0, so this feature is not available with that release.

You will need to wait for V10.2 to get that feature.

 

Sorry for the confusion.

 

CrasyCat

0 Kudos
546 Views
zorrotz
Contributor III

Thank you for the information.

0 Kudos