Lately I’ve come across some online formatting tools that have been very helpful. I like these because they work regardless of what IDE you use, what operating system, etc. They work from any computer that has internet access. Handy when you are troubleshooting on a remote machine.
Here is one for formatting XML: http://www.shell-tools.net/index.php?op=xml_format
And one for JSON from the same site: http://www.shell-tools.net/index.php?op=json_format
Here is a SQL one that helped me out a lot tonight: http://www.dpriver.com/pp/sqlformat.htm
I fed it a horrible looking, very complex query and it made it easily readable. 🙂