User Tip: Code Section Highlighting
I just thought I'd share this tip as I find it very useful. I'm abusing the TODO system to cause my code to be highlighted in different ways.
Highlight a single line in a comment:
Setup for that, go to File -> Settings -> TODO and click the [ + ] and set it up as such:
Specifically the above looks for spaces or tabs followed by a single ! and selects through the end of the line, then I just have it over-ride the default todo colors.
Highlight a multi-line section: (I use these to organize properties and public/private sections of code)
The pattern setup for this is: (?ms).*@INTERNAL.*
Note: The last line of the comment has a bunch of tabs prior to the */ to extend the highlighting past the right edge
Attention Getting Notes / Highlights
One last setup I have is to really get my attention for special notes, such as @NOCOMMIT
Pattern: (?ms).*@NOCOMMIT.*
Lastly, because these are TODO items, they will pollute your TODO pane, but you can setup a Todo Items Filter which I have done as such:
Please sign in to leave a comment.