RE: [PHP] highlight_string()

From: Date: Mon, 06 Mar 2006 09:49:40 +0000
Subject: RE: [PHP] highlight_string()
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-231496@lists.php.net to get a copy of this message
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:berber@weber-sites.com] 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

« previous php.general (#231496) next »