xhtml.vim : XHTML syntax highlighting
| script karma
Downloaded by 3549
Comments, bugs, improvements
script versions (upload new version)
|Syntax highlighting for Extensible HyperText Markup Language.
Handles XHTML 1.0 (Strict, Transitional and Frameset) and XHTML 1.1;
XHTML 2.0 (as of 7th Working Draft), including XML Events and XForms, is also highlighted.
(just insert line "let xhtml_no_events_rendering=1" to your .vimrc file).
CSS highlighting in "style" attributes is availaible too; you can disable it by setting this variable:
|Requires mathml.vim (vimscript #1235) and svg.vim (vimscript #935) (for version 1.0.1+ you need mathml.vim v. 1.0.1+ and svg.vim v. 1.1.1+).
However, you can choose not to use MathML and SVG syntax files – in that case you will have to set the following variables in your .vimrc:
Drop xhtml.vim into your syntax directory. You should also disable (e.g. rename or delete) XHTML syntax file that comes with distribution, to avoid unnecessary sourcing of HTML syntax file.
Probably you have got already appropriate entry in filetype.vim (for *.html, *.htm, *.shtml and *.stm files), but it's good idea to add also *.xhtml and *.xht files recognizing:
au BufNewFile,BufRead *.xhtml,*.xht setf xhtml
Click on the package to download.
ip used for rating: 188.8.131.52