XMLExpander


Ⅰ. 插件描述

XML Pretty Printer

Ⅱ. 基本信息

创建日期:  2015-04-19
使用用户:  2
Github星:  2
插件作者:  Data Statiker

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

Getting Started


With the XMLExpander extension plugin for vim you can make your XML file

  1. The XMLExpander is a pretty printer for XML.

When you have the problem that your xml files are e.g. in one line or have not
clear insertions this plugin could help you. After running the XMLExpander
every opening and ending tag is in one line and have clear insertions.

First install the plugin: |xmlexpander-install|

To run the XMLExpander do the following:

  • load the input XML file
  • execute the XMLExpander: menu Plugin->XMLExpander <run>

Now you have a pretty printed XML file (in the same VIM window!).

For further details read the vim help file doc/xmlexpander.txt
or in VIM :help xmlexpander

Warning:
The XML File must be syntactical correct! The script do not check this.

Whats New


Version 0.3

  • New name: xmlexpander
  • Redefine functions and variables (xmlexpander)
  • New function xmlexpander#isContentText(text) to check if a text has to be harmonized

添加新评论