I have successfully used below script to get predefined text highlighted in the textarea.
http://www.strangeplanet.fr/work/jquery-highlighttextarea/
How it is possible to get the predefined text to be changed on the fly? E.g. user write “green” in specific input box and then “green-words” are highlighted in textarea?
1 Answer