W3C home > Mailing lists > Public > html-tidy@w3.org > July to September 1999


From: Dave Raggett <dsr@w3.org>
Date: Fri, 10 Sep 1999 17:05:22 +0100 (GMT Daylight Time)
To: Richard Allsebrook <Richard.Allsebrook@easysoft.com>
cc: "'Justin Farnsworth'" <jef@eyeintegrated.com>, html-tidy@w3.org
Message-ID: <Pine.WNT.4.10.9909101700030.-206211@hazel.hpl.hp.com>
On Tue, 7 Sep 1999, Richard Allsebrook wrote:

> Oops, sorry for the typo - I was typing strait into the email.
> My only specification for tidy and PHP is that tidy completely
> ignores <? ?> and <?php ?> tags!  No formatting, entity
> translation, indenting/pretty printing - exactly the same as
> when it does when it encounters a <script></script> block.

This is tricky since <? ?> is the syntax used for processing
instructions, and it is unlikely to be the correct thing to
format all processing instructions in the way you want.

Perhaps Tidy could look at the name immediately following the <?
to determine what rendering to apply?

> I am intrigued to your solution for the <? mapping to &lt;?
> I use TIDY exclusively though HTML-Kit and the documentation
> provided is non-existent :-( Do you have any information on how
> TIDY is incorporated into HTML-Kit and what files I need to
> change to include this option?

Tidy is wrapped into a DLL for use in HTML Kit. I don't maintain
HTML Kit myself, so you need to contact "Chami" for further

> Thanks again for the ever excellent TIDY.  I have no problems
> with its HTML parsing (apart from it adding a cr/lf after a <TD>
> which breaks the appearance of some tables) and I'd be the first
> to admit PHP integration is a little strange.
> I personal don't mind moving over to <?php ?> for inline tags if
> it would make the parsing simpler.

It would certainly be helpful to have a simply way for Tidy to know
which processing instructions should be formatted specially.


-- Dave Raggett <dsr@w3.org> http://www.w3.org/People/Raggett
phone: +44 122 578 2984 (or 2521) +44 385 320 444 (gsm mobile)
World Wide Web Consortium (on assignment from HP Labs)
Received on Friday, 10 September 1999 12:03:40 UTC

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