Tidy and PHP code

I've have html-tidy (version 5.10.26 for Gentoo Linux) installed on my
desktop system; however, like previous versions of tidy, it misbehaves
rather badly when dealing with embedded PHP sections in pages, notably where
I have the PHP switch markup "<?php" inside a tag, which tidy insists on
rendering as "&lt;?php" in its output.

It appears that much of the functionality of tidy has been incorporated into
recent versions of PHP (including PHP5) which is supposed to fully support
PHP markup; however, it looks as if the PHP calls to tidy are for the
purpose of generating self-cleaning pages, and I'm having the duce of a time
getting something that will work as an external app for bluefish, which is
my HTML and PHP editor.  Bluefish requires a CLI program to use as a filter. 
Cleaned up pages are sent back to bluefish via stdout.

So I'm rather stuck at this point.  Does anyone have any ideas how I get a
working version of tidy that properly handles PHP code, or where I can go
for help with this?


-- 
Lindsay Haisley       | "Fighting against human |     PGP public key
FMP Computer Services |    creativity is like   |      available at
512-259-1190          |    trying to eradicate  | <http://pubkeys.fmp.com>
http://www.fmp.com    |        dandelions"      |
                      |      (Pamela Jones)     |

Received on Sunday, 12 March 2006 04:24:26 UTC