RE: [PHP] highlight_string()

From: Date: Mon, 06 Mar 2006 10:06:35 +0000
Subject: RE: [PHP] highlight_string()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-231499@lists.php.net to get a copy of this message
I was afraid of that... I need to do HTML manipulations on the text that is outside the <??>. After I run highlight_string the original text is messed up. If I run the manipulations before then they will look like HTML And not act as HTML... Any ideas? -----Original Message----- From: chris smith [mailto:dmagick@gmail.com] Sent: Monday, March 06, 2006 11:59 AM To: Weber Sites LTD Cc: php-general@lists.php.net Subject: Re: [PHP] highlight_string() On 3/6/06, Weber Sites LTD <berber@weber-sites.com> wrote: > The only way I could work around this was to put empty <??> at the > Beginning of the text and now highlight_string() highlights only what > Is inside <? ?> > > You can see an example of the problematic text in the example Area of > this page : http://www.weberdev.com/get_example-4345.html > > Notice the empty <? ?> at the beginning of the example. > Without them, all of the example, including the text and HTML Part > will be painted by highlight_string(). > > Is this a bug? No. It will highlight html as well. You can give the illusion of it not highlighting the html by using: ini_set('highlight.html', '#000000'); -- Postgresql & php tutorials http://www.designmagick.com/

« previous php.general (#231499) next »