bravoの日記: JSいりHTMLモード
日記 by
bravo
(defun exhtml-mode ()
(multi-mode 1
'html-mode
;;your choice of modes for javascript and html
'("<script" c-mode)
'("</script>" html-mode)))
(setq auto-mode-alist (append '(("\\.html$" . exhtml-mode)) auto-mode-alist))
(multi-mode 1
'html-mode
;;your choice of modes for javascript and html
'("<script" c-mode)
'("</script>" html-mode)))
(setq auto-mode-alist (append '(("\\.html$" . exhtml-mode)) auto-mode-alist))
JSいりHTMLモード More ログイン