xhtml.vim


Ⅰ. 插件描述

XHTML syntax highlighting

Ⅱ. 基本信息

创建日期:  2005-03-11
使用用户:  5
Github星:  2
插件作者:  Michał Górny

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '/xhtml-vim-grny'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '/xhtml-vim-grny'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '/xhtml-vim-grny'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/xhtml.vim--Grny

Ⅳ. 文档说明

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.

Syntax of the following languages embedded in XHTML document can be highlighted: MathML, SVG, CSS, JavaScript, VBScript, SSI and XSSI.

There is also special highlighting for XHTML events ("on..." attributes with JavaScript content), however it is possible to disable it by setting the following variable:
    xhtml_no_events_rendering
(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:
    xhtml_no_inline_css_rendering

添加新评论