You are here: Re: indenting « PHP Programming Language « IT news, forums, messages
Re: indenting

Posted by Jean Pion on 10/09/06 11:36

"Ivαn Sαnchez Ortega" <i.punto.sanchez--@rroba--mirame.punto.net> schreef in
bericht news:m18u83-u8m.ln1@blackspark.escomposlinux.org...
> tomb wrote:
>
>> But the only reason to generate neat html
>> is so the users can look at the page source and make sense of it more.
>
> Besides, a developer should not read raw HTML, but should have a look at
> the
> DOM tree - there are wonderful DOM tree inspectors for Konqueror and
> Firefox (built-in) and for IE (via third-party toolbars).
>
> Analyzing the DOM tree generated by the PHP scripts, and validating the
> generated HTML against W3C's validators would prove more useful than
> writing scripts that generate indented HTML.
>

I'm just working on some inherited code, and I don't want to rewrite it
completely.
What I do now is load source of the resulting page into CSE Html Validator.
If would help me a bit to make it more readable;
but you are right: a comment blocks will do fine.

Thanks for your input,
Jean.

>
> (In fact, my programs generate a gibberish of (X)HTML that validates quite
> nicely, but is a mess to read).
>
> - --
> - ----------------------------------
> Ivαn Sαnchez Ortega -i-punto-sanchez--arroba-mirame-punto-net
>

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация