Page 1 of 1

format html markup

Posted: Sun Feb 04, 2007 9:32 pm
by GeXus
Does anyone know of any simple tools that will let you enter in all your markup and it will put tabs and spaces to format it neatly? I'd like to find something just really quick and simple (as opposed to dreamweaver, etc.), otherwise I will just do it by hand as I have been. Thanks!

Posted: Sun Feb 04, 2007 9:34 pm
by alex.barylski
If you find one, lemme know...Search Google for HTML beautifier's...good luck finding a quality one ;)

Posted: Sun Feb 04, 2007 9:37 pm
by GeXus
I found one.. HTML tidy http://infohound.net/tidy/

Although this adds a bunch of extra "crap" in the markup.. scratch that.

Posted: Sun Feb 04, 2007 9:43 pm
by feyd
There is Ambush Commander's HTML Purifier which may be useful.

Posted: Mon Feb 05, 2007 1:32 am
by alex.barylski
Does that actually beautify the source or just make it XHTML compliant, etc?

Posted: Mon Feb 05, 2007 3:39 am
by Ollie Saunders
The HTML validator extension for FireFox is the best I've seen. Otherwise I can give you something I wrote or you could run it through a bit of XSL with <xsl:ouput indent="true" method="html" /> you can use Architag XML editor for doing that.

Posted: Mon Feb 05, 2007 8:22 am
by GeXus
It seems like most also add in missing tags, etc. Haven't found anything yet that simply handles tabs and spacing.

Posted: Mon Feb 05, 2007 8:24 am
by Ollie Saunders
ahh well that limits the three options I posted to the thing I wrote. I can also sort the attributes alphabetically. It doesn't support SGML syntax though.

Posted: Wed Feb 07, 2007 11:59 am
by RobertGonzalez
GeXus wrote:I found one.. HTML tidy http://infohound.net/tidy/

Although this adds a bunch of extra "crap" in the markup.. scratch that.
What extra crap? I just ran it and it came out fine.