My Tech Notes
Search This Blog
vim: format/indent xml file
It requires
xmllint
command.
libxml2-utils
need to be installed:
sudo apt install libxml2-utils
Use vim open the xml file, use the following vim command to reformat:
:%!xmllint --format -
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment