Is it possible to set up different colors for some types of comments?
I’m using many comments in my draft code and usually it’s almost non visible, cuz it’s mostly just technical information. But I’d like to use some critical comments and see it brightly.
For example, PHP has two variants for comments - // and #
Could I chance to bind // to one color and # for another?
Different colors for the different types of comments
Skom
#1
2 Likes
Orlmente
#2
In PHP syntax all 3 kind of comments (//, # and /**/) have different scopes:
// embedding.php text.html.basic meta.embedded.block.php source.php comment.line.double-slash.
# embedding.php text.html.basic meta.embedded.block.php source.php comment.line.number-sign.php
/**/ embedding.php text.html.basic meta.embedded.block.php source.php comment.block.php
so yes, is possible to visually differentiate all of them.
Hint: use Ctrl+Alt+Shift+o to see the applied scope at cursor point.
1 Like