Sublime Forum

Change color of comment symbols?

#1

I have been successful in changing the color of text within a comment by using the comment.line and comment.block scopes in a tmtheme file.

However I can’t work out how to change the color of the comment symbols themselves (ie. the ‘//’ , ‘/’ and '/’ strings).

Thanks!

0 Likes

#2

it depends on the language/syntax definition, how it scopes the punctuation. Put your text caret to the left of a // or /* etc. and Tools menu -> Developer -> Show Scope Name, it will show a popup with the full scope at that position, you just need to take the last scope, which will begin punctuation.

3 Likes

#3

Thanks for the quick reply! That worked perfectly.

R

0 Likes