Re: Tidy HTML source?

From: Date: Mon, 27 Nov 2006 21:46:20 +0000
Subject: Re: Tidy HTML source?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-245197@lists.php.net to get a copy of this message
At 5:10 PM +0000 11/27/06, Mark Kelly wrote:
Hi. In the stuff I do almost all the HTML is generated with PHP as basically none of it is static (lots of tabular data, state-sensitive links, stuff like that). Am I crazy to make an extra effort in my code to make the generated HTML pretty? By this I mean linebreaks, indentation etc. - stuff that is aimed at readability rather than correctness. This is obviously above and beyond simply making sure it validates. It's not a huge burden by any means, but it *is* extra effort. What do you guys do?
All my coding in all languages is pretty. To me ,it's simply an addition to documentation. Sure it takes more time, but if I ever have to reuse the code, it's a snap to figure things out. Besides, it helps me organize and write better code. However, most of the pretty html stuff is covered by css -- but that too (for my work) is generated by php. They all go together. tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com

« previous php.general (#245197) next »