Editing mixed-content files with multiple major modes in the same buffer
A buffer has a single major mode chosen according to the file format. For mixed-content files, there are ways to benefit from multiple major modes.
Related tags
- mmm-mode, one of the ways to switch between major modes based on context
- polymode, another way to switch between major modes based on context
- web-mode, for HTML files embedded CSS, Javascript and server-side scripts
External links
- Multiple Modes on the Emacs Wiki