RE: highlight_string()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx] 
Sent: Monday, March 06, 2006 11:59 AM
To: Weber Sites LTD
Cc: php-general@xxxxxxxxxxxxx
Subject: Re:  highlight_string()

On 3/6/06, Weber Sites LTD <berber@xxxxxxxxxxxxxxx> 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/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux