How can you add custom syntax highlighting for a plaintext file? (for any filetype, not just txt)
I leave this question open to any editor for those who know - I'm not picky. If you want me to be specific, assume Sublime Text 2 or 3. (I write a lot of things in Sublime Text, I use many IDEs regularly, I used to use Notepad++.)
Sometimes I want to be able to write up notes in a file, but it would be helpful to have my own custom syntax highlighting for plaintext notes.
Is there a way to do this?
I would also consider an alternative file extension as a valid answer (like .yml)
What I'm looking for is a way to color "*", ">", "-", digits, etc. in a plaintext file (of any file type).
There are many ways to state this question, and I'm not finding anybody asking it.
I realize that a solution would be to have access to the Sublime Text files that define the syntax highlighting grammars. Does anyone know where those would be, so that I could examine them and make my own? (Your own grammar is not for the lay person, I know)