Comments color in CW MCU v10.1

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Comments color in CW MCU v10.1

ソリューションへジャンプ
1,036件の閲覧回数
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.

ラベル(1)
0 件の賞賛
1 解決策
581件の閲覧回数
zorrotz
Contributor III

Thank you for the information.

元の投稿で解決策を見る

0 件の賞賛
6 返答(返信)
581件の閲覧回数
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 件の賞賛
581件の閲覧回数
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 件の賞賛
581件の閲覧回数
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 件の賞賛
581件の閲覧回数
zorrotz
Contributor III

Hello,

 

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

0 件の賞賛
581件の閲覧回数
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 件の賞賛
582件の閲覧回数
zorrotz
Contributor III

Thank you for the information.

0 件の賞賛