- From: Richard Allsebrook <Richard.Allsebrook@easysoft.com>
- Date: Thu, 2 Sep 1999 14:21:59 +0100
- To: "'Justin Farnsworth'" <jef@eyeintegrated.com>, html-tidy@w3.org
I've been using TIDY (as a plug-in for HTML Kit http://www.chami.com/html-kit/ ) to tidy up my PHP3 scripts for some time now. I've found that you get less managing if you use a <script language="php"> </script> tag for php elements that span more than one line <? ?> can be used OK for simple element substitutions. You're right though, it's still not perfect :-( TIDY incorrectly mangles the following: <A href="<? echo myUrl ?>Click Me</A> to <A href="<? echo myUrl ?>Click Me</A> which breaks the PHP. I also find it particularly annoying that TIDY re-indents <? ?> tags each time you tidy a document, but leaves <script></script> blocks alone. Richard Allsebrook Webmaster - Easysoft Limited http://www.easysoft.com <http://www.easysoft.com> * No 3 the Embankments, Leeds LS1 4BJ, UK *+44 0113 2220400 -----Original Message----- From: Justin Farnsworth [mailto:jef@eyeintegrated.com] Sent: 02 September 1999 12:38 To: html-tidy@w3.org Subject: TIDY for PHP3 I would like to ask if anyone on this list has hacked tidy or generated a patch in order to use tidy with PHP3 files. Some previous attempts such as: http://techst02.technion.ac.il/~sbaruch/tidy_baruch.zip still mangle HTML code within the PHP tags. For those unaware of PHP3, you may visit: http://www.php.net/ PHP is fastest-growing server-side scripting language used on the web, currently in 500,000 web sites according to Netcraft. Tidy is so useful for pure HTML files that I wish to use it with PHP3 files also. -- Justin Farnsworth Eye Integrated Communications 106 East Victoria Court - Suite A Greenville, NC 27858 | Tel: (252) 353-0722
Received on Thursday, 2 September 1999 09:25:13 UTC