If you’re like me, you absolutely hate having to read XML all on one line, or poorly formatted. Whats the best way to clean up markup languages you ask? Tidy, of course! But, tidy likes to add weird formatting, HTML, etc, and pretty much mangles any XML that it touches…
Well, here’s some settings for your Tidy INI file which will prevent this from happening. Apply these settings to your Tidy configuration file in Notepad++ (Directory below), and reload the program. Then select Clean Indent XML from the Tools/Tidy menu and you’re on your way to non-mangled beautiful XML in no time! Keep in mind though, this doesn’t fix structure, just whitespace, garbage in, garbage out.
C:Program Files (x86)Notepad++pluginsConfigtidyTIDYCFG.INI
[Clean Indent XML] input-xml: yes bare:no clean:no fix-bad-comments:no fix-backslash:no indent:yes indent-attributes:no indent-spaces:4 char-encoding:raw replace-color:no wrap:0 wrap-asp:no wrap-jste:no wrap-php:no write-back:yes
Latest posts by Thomas Hunter II (see all)
- Advanced Microservices - 2017-06-19
- Linux Mint Disable “Recently Used” - 2017-04-14
- Ubuntu 16.04 LTS Xen stuck on “Loading Initial Ramdisk” - 2017-04-05