i'm looking for a way to highlight some words in a textarea without affecting the content of it.
in the textarea is some html-code, so that doesn't may change when there are words highlighted.
for example, the content of the area looks like this:
<table><tr><td>some keywords to test</td></tr></table>
i already have a higlight script, but it changes the content.
when i want to search for the word 'keywords' in the example above, i would have a result like this:
<table><tr><td>some <font style='color:blue; background-color:yellow;'>keywords</font> to test</td></tr></table>
so my content changes, what i actualy wants is that it leaves the content, but just highlights the keywords, so that in the submitted form, there isn't any highlight in it.
I hope you understand what i'm trying to explain
greetings