4 ms·
Nice, but I really want matching _variable_ colorization. Here is a beautiful demo [1]. I've yet to see it implemented in any serious editor. [1]: https://evan
by jamesfisher 5y ago
Nice, but I really want matching _variable_ colorization. Here is a beautiful demo [1]. I've yet to see it implemented in any serious editor.
[1]: https://evanbrooks.info/syntax-highlight/v2/ https://evanbrooks.info/syntax-highlight/v2/
- fooey 5y agoDo you mean what VSCode calls semantic highlighting? https://code.visualstudio.com/api/language-extensions/semantic-highlight-guide https://code.visualstudio.com/api/language-extensions/semant...
- kevingadd 5y agoNo, the GP is talking about a unique color being assigned to each name (local, parameter etc) in a scope so that typos become visible at a glance. I used a Sublime Text extension for this once but haven't seen it built into an editor either.
- dr_kiszonka 5y agoI wonder if it would be possible to combine the two, e.g., have parameters always displayed in italics with each parameter having its distinct color.
- deleted 5y ago[deleted]
- matsemann 5y agoJetbrains editors have that, called semantic highlighting. https://blog.jetbrains.com/pycharm/2017/01/make-sense-of-your-variables-at-a-glance-with-semantic-highlighting/ https://blog.jetbrains.com/pycharm/2017/01/make-sense-of-you... per variable basis, so apparently different than the vs code thingy with the same name. Also lots of extensions for similar stuff, often named "rainbow" something.