HI Folks
As much as I love ST, I’m tearing my hair out here. One might think setting a file’s syntax highlighting would be dead simple. Wow, I was so wrong.
Ok lets say there is a file called .snippets. We want it to be of type Shell Script
Now here is the issue, if you open command palette and type “Bash” then enter, it works! Voila. You can even quit ST3 and when you come back to the workspace and it’s still set.
Ok now this is where it goes bad. Simply close the file, (to declutter your open files). Open it again later. And BAMM! no more highlighting.
This means every time you open that same file you have to set highlighting. Wow thats insane.
Ok well anyway, after googling around, I found a convoluted ‘solution’. Install PackageResourceManager, browse to a tmLanguage file and manually add it. Are you kidding me?!
Even then, because it’s cached, it doesn’t work immediately. I’m not sure what to do, delete the cache?
I have tens of little files all over the place that need custom syntax highlighting.
Please tell me there is a better way …