Re: cvs: peardoc / colorize.php
| From: | Dennis Sterzenbach | Date: | Thu, 30 Oct 2003 08:39:55 +0000 |
| Subject: | Re: cvs: peardoc / colorize.php | ||
| References: | 1 | Groups: | php.pear.doc |
| Request: | Send a blank email to pear-doc+get-1822@lists.php.net to get a copy of this message | ||
highlight_string($example);
$colored_example = ob_get_contents();
ob_end_clean();
+ + // add \n to fix highlight_string() for cut-and-pasting examples
+ $colored_example = str_replace('<br />', "\n", $colored_example);
return '<PRE CLASS="php">' . $colored_example . '</PRE';
}
For me there's missing the closing bracket to </PRE in return statement?
--
Dennis Sterzenbach
http://www.darknoise.de/