Posted by Fabian Hore on 09/26/05 19:19
The highlight_string function as you say is for displaying nice formatted
PHP code.
I suggest you use some kind of find and replace mechanism on the HTML
string.
Such as -
$newsrc = preg_replace('/(some phrase)/', '<span class="hilite">\1</span>',
$oldsrc);
"Rob" <reply@newsgroup.nl> wrote in message
news:4337c124$0$22031$ba620dc5@text.nova.planet.nl...
> Hello all,
>
> I like to highlight a piece of HTML to show in a webpage. Is there any
> function which does the task? I now about the functions
> highlight_string/file. But these will only highlight PHP and doesn't add
> any color to the html.
>
> Thanks in advance Rob
>
Navigation:
[Reply to this message]
|