Is Crockford style Context Coloring implemented in any code editor?

烂漫一生 提交于 2019-11-27 17:12:09

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

https://plus.google.com/118095276221607585885/posts/FzKnHk96m2C

I just watched his video on that, great stuff. Had to give it a try, or checkout the project on GitHub https://github.com/daniellmb/JavaScript-Scope-Context-Coloring.

Vim (GitHub):

Emacs (GitHub):

hzoo

There's a package for sublime now: https://github.com/mazurov/sublime-levels

It also has an online live demo at http://mazurov.github.io/eslevels-demo/

DrM

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?

Sources:

1) http://blogs.kent.ac.uk/mik/2010/05/bluej-3-0-whats-new/

2) https://github.com/adobe/brackets/issues/search?q=Crockford

3) http://www.adobe.com/devnet/html5/articles/bracket-code-architecture.html

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.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!