3 ms·
Of note is that Kate editor, when used with a language server, has an interesting approach to syntax highlighting. It has something called rainbow highlighting,
by creatonez 7y ago
Of note is that Kate editor, when used with a language server, has an interesting approach to syntax highlighting. It has something called rainbow highlighting, which colors each variable/class/whatever uniquely.
- jobigoud 7y agoInteresting! Are the keywords also having their own color each, or are they grouped in a single color?
- recursivecaveat 7y agoI have also heard this called 'semantic highlighting' for anyone searching for a plugin for their editor. Not sure if any do this, but it would be interesting to try a version that assigns bands of colours to different types of symbols. Eg earthy colours for parameters, neon for locals, pastels for globals, etc.
- nikisweeting 7y agoThere's a plugin that does semantic highlighting for Sublime, then Sublime added native support for it a little while ago. Since then I haven't seen any new plugins that take advantage of the new native Sublime functionality though.
- squeaky-clean 7y agoYou can enable this in PyCharm too (the IDE from the post) and probably every other IntelliJ variant. I believe it takes a hash of the variable name and turns it into a color? Because it will consistently keep color for the same tokens across projects and files. Really useful! Though maybe I installed a plugin to do this, I'm away from ny laptop at the moment (happy holidays).