tags:

views:

191

answers:

1

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;
+2  A: 

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.

Robusto
I tried to highlight the text as mentioned in that discussion... by changing text color with <font color="#ffffff">code</font> but I want to create "themes" so css would be the real solution.
Biroka