4 ms·
I will prefer to stick with syntax highlighting, thank you. It's to most people's taste, but not everyone's, probably worth trying it both ways to see which cat
by samatman 3y ago
I will prefer to stick with syntax highlighting, thank you. It's to most people's taste, but not everyone's, probably worth trying it both ways to see which category you actually belong to.
I do wish an editor (heh) had added Gary Bernhardt's ideas[†] about multiple sorts of syntax highlighting for different purposes. Specifically, highlighting only variables as to the scope they belong to, another nice one could be highlighting pure and effectful function calls differently. Or highlighting the names of modules/packages/whateverthelanguageuses in distinct colors at the top of the file, then using the same color for every name which came from that package, underlining imports which aren't being used.
I would cycle through such a collection rather frequently, I suspect.
[†]: https://www.destroyallsoftware.com/talks/a-whole-new-world https://www.destroyallsoftware.com/talks/a-whole-new-world
- kartoshechka 3y agoyou should set up semantic token highlighting together with highlight on cursor hold for your language of use, former is usually a feature of language server, latter should be out of box behavior in modern ides not quite what you desire, but certainly better than plain syntax highlight