vprimachenko / Sublime-Colorcoder

Semantic highlight for Sublime Text
290 stars 25 forks source link

Python colorcoding broken? #37

Closed objarni closed 9 years ago

objarni commented 9 years ago

I was under the impression the color coding was supposed to identify variables ('names' in Python lingua) and not whole rows? This just looks weird.... colorcoderpythonst3

OS: Ubuntu 14.04 64-bit Software: Sublime Text 3 Install: via package control

objarni commented 9 years ago

I get the same problem in C++; keywords and method names are colored, but not local variables. Is this expected behaviour?

objarni commented 9 years ago

OK I found this thread on the Sublime Text forum, that gave me the solution: via command palette choose syntax highlighter. Is it not possible for Colorcoder to do this automatically, on detecting what language is used in the buffer?

vprimachenko commented 9 years ago

this is expected behaviour (or better, i expect the user to change the language manually or set them as default) as default languages don't provide the needed level of fidelity in terms of token distinction – hence i provide special colorcoded languages (as noted in readme).

Theoretically it is possible for colorcoder to automatically switch the definitions, but i restrained from implementing this as:

objarni commented 9 years ago

Thank you!

I will definitely go for the default language for extension as I already - after using this only for a day - feel in better control of my code - this package enhances "local readability" for a method a lot.

By reading through the whole doc page I see this is documented under the header "Supported languages". I would have expected this to be part of the header "Installation" as I expect plugins to start working once installed (after a ST reboot at least), or if anything like this is necessary to set them up, I expect it to be documented under "Installation".

Thanks for a great plugin!