i need to colorize part of the text in textarea. Let's say first line in red, second in blue. How to do this? (jQuery)
Asked
Active
Viewed 4,925 times
2 Answers
8
I'm not sure if it possible with textarea. Instead use div contentEditable.
See similar questions
Rendering HTML inside textarea
How to set background color for some inner text of HTML textarea element?
0
You can't easily style the contents of a text area, you can however use a simplified rich text editor to accomplish this.
something like RTE: http://batiste.dosimple.ch/blog/posts/2007-09-11-1/rich-text-editor-jquery.html or CLEditor: http://premiumsoftware.net/cleditor/ would be a good starting point for this.

Don Albrecht
- 1,222
- 1
- 8
- 12