Take the 2-minute tour ×  I'd like serveral words / phases in a
textarea to appear in different colors... How would I go about
doing this? Below is an example, I'd like the word green to
appear green etc etc...  <textarea style="width: 100%; height:
100%; resize: none;"> Is it possible to have multiple colors in
a textarea?  How would i set certain phases or words to be
different colors?  share|improve this question add comment  5
Answers  up vote 4 down vote accepted  You can't do this inside
a <textarea>, not one that's editable. It sounds like you're
after a WYSIWYG editor, most of which use a <iframe> to do this.
There are several JavaScript options for this, to name a few:
share|improve this answer add comment  This is not possible in a
normal textarea.    • For syntax highlighting-like approaches,
see the answers to this question.    • For a more complicated,
full-fledged WYSIWYG solution that can do colours as well as
other formatting, images, etc., see a WYSIWYG editor like
CKEditor.  share|improve