views:

209

answers:

1

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
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