format html markup

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
GeXus
Forum Regular
Posts: 631
Joined: Sat Mar 11, 2006 8:59 am

format html markup

Post 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!
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

If you find one, lemme know...Search Google for HTML beautifier's...good luck finding a quality one ;)
GeXus
Forum Regular
Posts: 631
Joined: Sat Mar 11, 2006 8:59 am

Post by GeXus »

I found one.. HTML tidy http://infohound.net/tidy/

Although this adds a bunch of extra "crap" in the markup.. scratch that.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

There is Ambush Commander's HTML Purifier which may be useful.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

Does that actually beautify the source or just make it XHTML compliant, etc?
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post 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.
GeXus
Forum Regular
Posts: 631
Joined: Sat Mar 11, 2006 8:59 am

Post by GeXus »

It seems like most also add in missing tags, etc. Haven't found anything yet that simply handles tabs and spacing.
User avatar
Ollie Saunders
DevNet Master
Posts: 3179
Joined: Tue May 24, 2005 6:01 pm
Location: UK

Post 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.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post 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.
Post Reply