top | item 5506220

(no title)

scjr | 13 years ago

It might be better to use variations in the background color. It may feel more natural to do so and it would allow normal syntax highlighting alongside scope highlighting.

discuss

order

ufo|13 years ago

Another possibility might be just colloring variables and assignments (since thats where the scoping actually matters)

archangel_one|13 years ago

I was just thinking the same; when all my syntax highlighting in a region looks backwards, I normally assume I've got a mismatched quote just before it. I think I'd be thinking that with this all the time.

Subtle changes in the background colour would be a nice alternative.

solox3|13 years ago

It is a good idea indeed. I believe Notepad++ does background scope highlighting already, just not accurate enough for JavaScript specifically.

Mahn|13 years ago

Exactly my thoughts, this could work really well if implemented properly.

seanp2k2|13 years ago

Yes; highlight BG lighter grey. This would be an awesome plugin for ST.

Zecc|13 years ago

Make the background color become less contrasting with the foreground color the more you nest. The larger the number of nested scopes, the harder it's going to be to read it anyway!

I'm actually serious by the way.