PlainTasks
PlainTasks copied to clipboard
Custom special tags, Feature Request
I want to to create some custom coloured tags like @low, @high, @critical features that you have.
I am trying to create to my own tags but not with full success. I can create the completions in the .sublime-completions file but I cant give it a coloured background. All my attempts at modifying the other files have not worked.
Please advise. Great Plugin, Thanks for creating it!
First of all your own tag must have its own scope: it must be matched in tmLanguage file (for ST2) or sublime-syntax file (for ST3). Second, tmTheme file must contain style for the scope.
The problem is that if you using Package Control, then on next update of PlainTasks your modifications will be vanished, you can disable automatic update, but then you may miss some bug fix. Adding custom tags automatically is problematic too.
There is another way: adding highlighting via add_region method (how we do for due tags), but it has its own issues: it is slow and tmTheme still must be modified to contain a style.