Tuesday, March 10, 2009

Formatting XML in VIM - xmllint --format -

XML text can be formatted in VIM by running the xmllint command over the selected text.

!xmllint --format -

Note the hyphen at the last.

Tried searching for sorter options for --format but did not found any.

No comments:

Post a Comment