views:

128

answers:

4

I am working on a HTML file that is a total mess right now and wanted to clean it up.

What good tool is there out there to clean up HTML files making them nice and readable with good formatting? I just want the file much much cleaner and readable.

+11  A: 

html tidy

Galen
+1 Tidy is a marvelous tool.
Andrew Hare
I found an online tool that uses tidy, I love it....though it does mess with the HTML in a way that mess's with the CSS.
Daniel
+2  A: 

If you're using Visual Studio, hit Crtl-K, Ctrl-D and it will tidy up that HTML for you.

Rob
+1  A: 

HTMLCleaner is a fairly recent project that tidies HTML. It's a Java tool that can be invoked from the command line, via Ant or programatically. See:

http://htmlcleaner.sourceforge.net/

Jon
+1  A: 

I found this site to be great, it is using tidy online:

http://infohound.net/tidy/

Daniel