Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

colorize text in textarea with jQuery

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)

like image 606
Petya petrov Avatar asked Mar 31 '11 09:03

Petya petrov


1 Answers

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?

like image 112
ace Avatar answered Nov 08 '22 11:11

ace