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?

-----Original Message-----
From: Weber Sites LTD [mailto:[EMAIL PROTECTED] 
Sent: Monday, March 06, 2006 11:29 AM
To: php-general@lists.php.net
Subject: [PHP] highlight_string()

Hi

>From what I see, highlight_string() should only change text between <? And
?>.
Any idea why it highlights all of the text I send to it (even text outside
<? And ?> ?

Thanks

berber

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

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

Reply via email to