Format XML documents, without changing the content within elements.
This extension uses a modified version of vkBeautify for xml formating.
vkBeautify does not change the formatting of content within elements (eg line breaks, tabs etc) when formatting the document.
Before:
<a><b>content
more content
some more content</b></a>
After:
<a>
<b>content
more content
some more content</b>
</a>
A more complex example, before:
<тест>test</тест>
<body><![CDATA[<x><!-- comment --> </y></x>]]></body>
<body><!-- <x><[CDATA[cdata]]> </y></x> --></body>
</unbalanced>
After:
<тест>test</тест>
<body>
<![CDATA[<x><!-- comment --> </y></x>]]>
</body>
<body>
<!-- <x><[CDATA[cdata]]> </y></x> -->
</body>
</unbalanced>
None
- Use document indent settings
Thanks to https://github.com/MasterNobody :
- Fix formatting with more than 100 levels of nesting
Thanks to https://github.com/MasterNobody :
- Support for non-latin tag names.
- Support for nesting comments in CDATA and vice versa.
- Support for unbalanced end-tags.
- Do not remove whitespaces and new lines inside comments and CDATA.
- Disable splitting of namespace declarations on new lines.
Fixing use of new
Added support for XSL files
Added a logo!
Obey vscode indent settings (thanks to @Gruntfuggly)
Copy changes
Initial release