slynch8 / 10x

10x IDE/Editor
191 stars 35 forks source link

Feature: highlight keywords like TODO and FIXME in comments for user attention #2561

Open neeraj9 opened 7 months ago

neeraj9 commented 7 months ago

It is common for code editors to highlight certain keywords like TODO and FIXME in editor within comments. It draws attention and looks good for quick discovery of pending items when browsing code.

slynch8 commented 7 months ago

You can do this by adding rules in the syntax highlighting files, for example in %appdata\10x\Settings\SyntaxHighlighting\cpp.10x_syntax add these lines

Special:
WORD(TODO)
WORD(FIXME)

and then add a the colour Special in your colour scheme file, eg %appdata%\10x\Settings\ColorSchemes\Sunset.10x_settings

Special: 255,0,0