Different comment styles in different colors


#1

Can different comment styles be in different colors in C/C++ mode?
For example, I want the comment in this syntax //comment… in blue and the comment in syntax /* comment */ in grey.

I know adding the following

// This styles comment text
atom-text-editor .syntax–comment {
color: #53FFA1;
}

// This styles comment punctuation (i.e. //, and //)
.syntax–punctuation.syntax–definition.syntax–comment {
color: #008C3F;
}
can change the comments’ color but can we have different colors for different comment syntax?

Thanks!


#2

According to the C grammar, block comments have an additional .block class that you can target.


Different comment styles in different colors on JS