[PHPTAL] Whitespace preservation, revisited :)

Joshua Paine lists at fairsky.us
Tue Jul 31 17:18:07 CEST 2007


Werner wrote:
> Even worse, Tidy 
> cannot *just* indent and beautify your code - it insists on "fixing" the 
> sources, sometimes breaking perfectly tuned XHTML 

I'm sure tidy was useful once. It's been a disaster all the years I've 
known about it, though: flags gazillions of absurd warnings and errors, 
fails to catch real, important errors. And (as you've seen) the markup 
formatting is actually quite poor.

> Are there any other low-overhead markup beautifiers out there

Unfortunately, all I can do is commiserate. Still, at least some of 
PHP's functions are built on libxml, which itself is about as fast as 
they come. What have you tried that was too slow?

Finally, I'm not sure I understand why it matters. If you want a pretty 
tree view of your page for debugging, you can just open up Firebug.

-- 
Joshua Paine
Chief Tower Builder
LetterBlock Software
http://letterblock.com/



More information about the PHPTAL mailing list