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