Sublime Forum

Color every token/word

#1

Hi

I’d like to color each and every token depending on what the token is, so that each word will have one unique color. For instance, all occurrences of ‘adapter’ could be reddish, and all occurrences of ‘trip’ could be greenish. The mapping is not the most important thing but could be calculated through a hash and then looked up in a palette (since direct mapping to hue does not suit the human eye), which is tuned such that it make as many words as possible stand out from each other.

Purpose:

  • see where a word is used without selecting it, but simply by browsing code with your eyes
  • unconsciously remember and later recognize parts and bits of code, using color and pattern memory.

Is this possible, or can it be made possible? This is possible to do in a browser (I’ve already done it) but it would be great to do it in Sublime Text instead.

0 Likes

#2

sigh, impossible for now at least,
I was looking forward such a way too…

0 Likes