Is it possible to use js2-mode as javascript mode with nxhtml?
+1
A:
Not according to the author of js2-mode.
From the source:
;; This mode does not yet work with "multi-mode" modes such as mmm-mode
;; and mumamo, although it could possibly be made to do so with some effort.
;; This means that js2-mode is currently only useful for editing JavaScript
;; files, and not for editing JavaScript within <script> tags or templates.
Cheeso
2010-03-07 14:27:02
and g-d help you if you convert your javascript into a single-line bookmarklet within js2-mode - the syntax-highlighting (or something like that) will kill your CPU. Js2-mode is VERY task-specific.
Michael Paulukonis
2010-03-08 15:13:38