
I will only highlighting html-tags to red-background in textarea.
Can someone tell me easiest way to do this with jQuery ?
I have no-idea what can i do. Because we cant use HTML tags in textarea, right ? 🙁
Or give me some resource.
Thanks
Playground : http://jsfiddle.net/RbLrK/
It’s not possible to achieve the required level of control over html tags in a regular textarea. Tags are treated simply like a text, and you cannot highlight part of the text.
Try something more sophisticated like for example CODEMIRROR or ACE