Is it possible to use js2-mode as javascript mode with nxhtml?
Is it possible to use js2-mode as java开发者_如何学JAVAscript mode with nxhtml?
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.
精彩评论