W3C home > Mailing lists > Public > html-tidy@w3.org > October to December 2001

Re: PHP support

From: Allan Clark <allanc@caldera.com>
Date: Fri, 02 Nov 2001 11:04:11 -0500
Message-ID: <3BE2C3FB.6CCB79BE@caldera.com>
To: Klaus Johannes Rusch <KlausRusch@atmedia.net>
CC: html-tidy@w3.org
Klaus, et al;

There's a certain desire to have code inline with the document cleaned
up.  My desire, for example, would be to have javascript code cleaned up
for me; this request seems to be a request to "code beautify" some PHP.

I think if this was done, we would want Tidy to recognize "hey this is
PHP code" and look at a list of "beautifiers" based on language or tag
type.  This way, the development of beautifiers isn't tied very tightly
with tidy, tidy can some execute child or co-processes to clean the
non-HTML non-XML code.

Does this sound logical?


Klaus Johannes Rusch wrote:
> In <DIEBKGOCMIFONOGIMNIHOENOCAAA.niklaus@sezampro.yu>, "Nenad Nikolic" <niklaus@sezampro.yu> writes:
> > I've tried to use HTML Tidy from Ultraedit ver8.2 editor.
> > sure it's cool, but it doesn't support (i.e. recognize) PHP code.
> >
> > is there any support planned?
> Tidy does handle PHP code references between <?php ... ?> as well as the
> <script> ... </script> format. Tidy does not clean up code created by PHP
> statements such as <? echo "<TABLE><TR><TD>This is incomplete</TABLE>"; ?>
> But, feel free to contribute any patches for better PHP support to
> http://tidy.sourceforge.net/
> --
> Klaus Johannes Rusch
> KlausRusch@atmedia.net
> http://www.atmedia.net/KlausRusch/
Received on Friday, 2 November 2001 11:04:37 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:51 UTC