Monday, July 13, 2009

(X)HTML indenter

I have been working on developing a style (or theme) for phpBB and was encountering XHTML files that had no line breaks and indenting, so I did some searches and found: HTML Tidy Online (http://infohound.net/tidy/), you paste your unformatted code in the box, set the options (you don't have to change anything) and hit the green Tidy button in the bottom right. It gives you a page with warnings and errors about your XHTML, indicting weather or not it's valid code, you click the View Tidied HTML button in the top right and it gives you a page showing the tidied XHTML, select it all (ctrl+a), then copy and paste it over you old code!

Hope this helps someone out there!


Jackson

No comments:

Post a Comment