I found an article this morning describing a different approach to syntax highlighting. The idea looks great but I wonder, how would you go about implementing this in ST? Is it even possible via a plugin?
adzenith wrote:To change the colors, you have to recreate the syntax file. If you wanted to do that, say, once/second, it might just work.
Thanks! This is what I was wondering. I didn't think the API had anything to control colors of specific blocks of text so any plugin would have to do this syntax file rewriting/reloading. Good to know.
While this thread seems to be about how to achieve this in Sublime, I would like hear opinions on if this is a great idea or not. Spontaneously it seems interesting and logical idea. But...
when I try to read the code in the rainbow coloured samples I find them slightly hurtful to my eyes. IMHO you do not always look for every identifier in the code, you look for one. So you select it and every instance of that gets highlighted. Much more readable (to me) and we already have it in our editor. : )
I think the biggest benefit would be to spot certain typos more readily without having to select something first. I also think this type of highlighting would work well on top of a more neutral color scheme for the regular syntax stuff we're already used to. I've thought about experimenting with that but for now I'm going to see how semantic highlighting feels for a few days.