Why not do something that parses the text, and put's tags
around the text, and use a stylesheet to highlight it?
The problem (that I can find) is that you are using eregi_replace(), which
is case-insensitive. You may need to do something like strpos() to find
the beginning and ends of the word,
I want to highlight some keywords in a text without losing its case.
How do I do that? I have something like the following:
$keyword="something here";
ob_start("highlight_keyword");
?>
just some text
to get it to grab the text and highlight it
2 matches
Mail list logo