0

Is there a way to change the color of certain words in a TextArea? For example,

"There are three possums in the road."

I would like to color 'possums' red.

Martin Wittemann
  • 2,109
  • 1
  • 12
  • 14
Jonathan
  • 894
  • 2
  • 9
  • 20
  • I think, I have provided better and really working solution - [codemirror](http://codemirror.net/) provides realtime coloring during typing into editable area. – Pavel Hodek Dec 12 '12 at 20:27

2 Answers2

1

qooxdoo does use a native TextArea so it depends on the native TextAreas capabilities. As TextAreas do not support that feature, we can't do much about it.

See also answers on the following questions for further information:

Change the Color Of Certain Words In Textarea using Jquery?

Multicolor Text Highlighting in a Textarea or Text Input

Community
  • 1
  • 1
Martin Wittemann
  • 2,109
  • 1
  • 12
  • 14
1

In textarea you can't. But there is posibility of "editable div". See http://codemirror.net/ (primarily for code listing but you can also extend it with a custom parser)

Pavel Hodek
  • 14,319
  • 3
  • 32
  • 37