RE: [PHP] highlight_string()
| From: | gustav at varupiraten dot se | Date: | Mon, 06 Mar 2006 10:00:49 +0000 |
| Subject: | RE: [PHP] highlight_string() | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-231498@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
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
Hi guys!
Maybe you could take a look at this code:
http://aidanlister.com/repos/v/PHP_Highlight.php
Best regards
/Gustav Wiberg