Posted by & filed under Uncategorized.

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

Thomas Hunter II

Support Thomas on Patreon. Thomas is the author of Advanced Microservices and a prolific public speaker with a passion for reducing complex problems into simple language and diagrams. His career includes working at Fortune 50's in the Midwest, co-founding a successful startup, and everything in between.