RE: highlight_string()

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

 



> 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@xxxxxxxxxxxxxxx]
> Sent: Monday, March 06, 2006 11:29 AM
> To: php-general@xxxxxxxxxxxxx
> Subject:  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

-- 
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