Is it possible to use js2-mode as javascript mode with nxhtml?

emacs, javascript

Solution

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.

Problem

Is it possible to use js2-mode as javascript mode with nxhtml?

Original source