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)
- Creating and Integrating a Node Lambda function with API Gateway - 2018-04-02
- Developing Cobalt Dungeon using Phaser and Cordova - 2018-03-27
- Cobalt Dungeon for iOS is now available - 2018-03-12