branch: master commit f4e075fded504072ce16a4183f8dd0f500673274 Author: Jackson Ray Hamilton <jack...@jacksonrayhamilton.com> Commit: Jackson Ray Hamilton <jack...@jacksonrayhamilton.com>
Readme updates. --- README.md | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3f41308..f5a4519 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,14 @@ </p> Highlights JavaScript code according to function context. Code in the global -scope is white, code in functions within the global scope is yellow, code within -such functions is green, etc. Comments are grey. +scope is white. Code in functions within the global scope is yellow, and code +within such functions is green, etc. Identifiers retain the color of the scope +in which they were defined. Comments are gray. + +This coloring scheme is probably more useful than conventional JavaScript +*syntax* highlighting. Lexical scope information at-a-glance is probably more +useful than detecting if you spelled "function" wrong, or determing that you +forgot to close a string literal. (A [linter][] would serve you better.) ## Usage @@ -22,5 +28,6 @@ Requires Emacs 24+ and [Node.js 0.10+][node]. (add-hook 'js-mode-hook 'context-coloring-mode) ``` +[linter]: https://github.com/jacksonrayhamilton/jslinted [node]: http://nodejs.org/download/ [load path]: https://www.gnu.org/software/emacs/manual/html_node/emacs/Lisp-Libraries.html