简体   繁体   中英

Emacs mode integration with HTML and JS

I find myself editing documents with both HTML and JS frequently. One thing that is slightly aggravating is the integration between javascript-mode and html-mode and the indentation / integration between the modes.

Just curious if anybody can point me to the solution for this workflow.

Thanks in advance.

Have you tried web-mode ?

web-mode.el is an autonomous emacs major-mode for editing web templates: HTML documents embedding parts (CSS / JavaScript) and blocks (client / server side)

Additional possibilities are listed on the Emacs wiki Multiple Modes page :

  • polymode
  • web-mode.el
  • mmm-mode.el
  • multi-web-mode.el
  • mumamo.el
  • multi-mode.el
  • two-mode-mode.el
  • Indirect buffers

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM