2

I would like create a text area with code highlighting in flex. Is there an advanced textArea witch suports css for real. For example:

myHtmltext:String = '<span class="keyword"> #include </span>';

myTextArea:TextArea = new TextArea();

myTextArea.htmlText = myHtmltext;
user229044
  • 232,980
  • 40
  • 330
  • 338
Biroka
  • 609
  • 10
  • 23

1 Answers1

2

You have to extend the TextArea to make it accept the styles via StyleManager. See this discussion for more info. It discusses the Text component, but the principle is the same.

Community
  • 1
  • 1
Robusto
  • 31,447
  • 8
  • 56
  • 77
  • 1
    I tried to highlight the text as mentioned in that discussion... by changing text color with code but I want to create "themes" so css would be the real solution. – Biroka Feb 26 '10 at 18:43