Syntax highlighting for HTML with embedded Javascript
From Vim Tips Wiki
Tip 1193 Previous Next Created: March 31, 2006 Complexity: basic Author: Anon Version: 6.0
Just use the "htmlm4.vim" syntax script. (I got this from VimTip1041, but it was non-obvious to somebody looking for a quick answer.)
Put simply, while in normal mode, type the following:
:set filetype=htmlm4
You can automatically load this syntax for all html files by adding the following line to your vimrc
au BufRead *.html set filetype=htmlm4
