How do I set vim\'s syntax highlighting to treat a file extension as an html file?
I\'m using ez template, so the file\'s extension is .ezt. But a lot
.ezt
Note that :set syntax=xml highlights properly but seems to fail when one is attempting to autoindent the file (i.e. running gg=G).
:set syntax=xml
gg=G
When I switched to :set filetype=xml, the highlighting worked properly and the file indented properly.
:set filetype=xml