note 58998 rejected from function.ereg-replace by dmytton
| From: | dmytton@php.net | Date: | Wed, 23 Nov 2005 15:41:11 +0000 |
| Subject: | note 58998 rejected from function.ereg-replace by dmytton | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-98981@lists.php.net to get a copy of this message | ||
Note Submitter: dan dot forbert at hotmail dot com
----
I'm trying to format some output of code so that whenever a variable appears in the code, it is
in a different color.
example
$var= would be replaced by
<span class="blue">$var=</span>
I've tried several things with preg_replace and eregi_replace but I can't seem to make it
work.
Can anyone help me with this?
Thanks
Dan