Re: Examples at pear documentation
| From: | Martin Jansen | Date: | Wed, 29 Oct 2003 11:44:30 +0000 |
| Subject: | Re: Examples at pear documentation | ||
| References: | 1 2 3 | Groups: | php.pear.doc |
| Request: | Send a blank email to pear-doc+get-1813@lists.php.net to get a copy of this message | ||
On Wed Oct 29, 2003 at 12:4450AM -0500, Greg Beaver wrote:
> $colored_example = ob_getcontents();
> highlight_string($example);
> if (version_compare(phpversion(), '4.3.4', 'ge') < 0) {
> $colored_example = str_replace('<br />', "<br />\n",
> $colored_example);
> }
>
> This is found in cvs at peardoc/colorize.php, btw.
Can you please commit that one?
--
- Martin Martin Jansen
http://martinjansen.com/