I have to code a source code editor in a Flex application.
I want to colorize the Keywords, quotes, comments ...
I have seen a some text editors doing that, as the tourDeFlex one, or even the source code view (on the flex applications contextual menu).
Is there a base component able to colorize text ? or do I have to implement my own loops using the "setTextFormat" method from the TextEditor ? (this method can be heavy...)
you can use text area Component and use its htmlText property to set
Html Formatting on your text.and you can use regular Expression with a
hashMap for Characters and their Colors.