Hi, I struggled a bit with this as well.
First thing I tried was using sublime linter, it kinda works but IMO looks ugly and is a bit limited if you want to add or modify stuff.
So I ended up modding the language file and theme I was using.
I'm using
C Improved(you can find it in package control) as the tmLanguage. You'll have to add this to your tmLanguage file:
[color=#008888]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 | <dict>
<key>match</key>
<string>(?i)\b(TODO)\b</string>
<key>name</key>
<string>annotation.todo.c</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\b(NOTE)\b</string>
<key>name</key>
<string>annotation.note.c</string>
</dict>
<dict>
<key>match</key>
<string>(?i)\b(IMPORTANT)\b</string>
<key>name</key>
<string>annotation.important.c</string>
</dict>
|
[/color]
It matters where you put it.
I put it after this part at around line 1070 in CImproved.tmLanguage.
[color=#008888]
| <key>lex-continuation</key>
<dict>
<key>patterns</key>
<array>
|
[/color]
So with that we've added a scope for the keywords we're looking to highlight. Next we just have to make it so that our theme actually highlight the keywords by adding this to the tmTheme file:
[color=#008888]
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39 | <dict>
<key>name</key>
<string>TODO</string>
<key>scope</key>
<string>annotation.todo</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string>bold</string>
<key>foreground</key>
<string>#C42F0E</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>NOTE</string>
<key>scope</key>
<string>annotation.note</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string>bold</string>
<key>foreground</key>
<string>#008900</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>IMPORTANT</string>
<key>scope</key>
<string>annotation.important</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string>bold</string>
<key>foreground</key>
<string>#CFC927</string>
</dict>
</dict>
|
[/color]
final result:
let me know if there's anything else you want to adjust. I've managed to somewhat mirror caseys editor workflow using sublime.