Is Crockford style Context Coloring implemented in any code editor?

I watched a video from YUIConf 2012 in which Douglas Crockford gives a talk about implementing monads in JavaScript. In this talk he gives a code example that utilizes what he calls "Context Coloring" which throws out the idea of coloring by language syntax and introduces different colors for different levels of scope. Here is the link to that specific part of the video.

Is this context coloring scheme implemented by any code editor for JavaScript or any language?

I use Sublime Text and this editor like every other code editor I have come across allows color to be applied to syntax. Im not sure if a plugin could solve this problem or if an editor would have to be designed from the ground up to allow this context coloring scheme.


As of Feb-13th 2013 Crockford has added an experimental context coloring feature to JSLint.

I just watched his video on that, great stuff. Had to give it a try, or checkout the project on GitHub

Vim (GitHub):

Emacs (GitHub):

There's a package for sublime now:

It also has an online live demo at

BlueJ has it (1) - but then it also may not. The context coloring for scope in javascript will certainly be more complicated than any other language such a java - which this editor works on.

The folks writing Brackets will probably do it eventually since they worship Crockford (2,3)

Why not join them in helping write it or at least tell them to?





Not that I know of. This would be great, but it would need a lexical analyzer specific to JavaScript and it would probably not work when there are any syntax errors.

Need Your Help

Access variable value where the name of variable is stored in a string

r variables r-faq

Similar questions have been raised for other languages: C, sql, java, etc.

Difference between microtask and macrotask within an event loop context

javascript node.js promise event-loop

I've just finished reading the Promises/A+ specification and stumbled upon the terms microtask and macrotask: see