Re: [PHP] highlighting keywords problem

2001-07-24 Thread Ben Bleything
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,

[PHP] highlighting keywords problem

2001-07-23 Thread Christian Dechery
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