[PHP] highlight_file() in XHTML Strict?

2003-06-24 Thread Leif K-Brooks
I want to use highlight_file() in XHTML Strict. Is there any way to change PHP to use span class=string (and other classes) and use a stylesheet to colour it? If not, any other suggestions? -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it

Re: [PHP] highlight_file() in XHTML Strict?

2003-06-24 Thread Adrian
try this: ob_start(); $oldlevel=error_reporting(0); highlight_file($file); error_reporting($oldlevel); $buffer = ob_get_contents(); ob_end_clean(); $buffer = str_replace(code, , $buffer); $buffer = str_replace(/code, , $buffer); $buffer = preg_replace(/font