Colored text

I need to create a syntax hilighter.
Then I need to manage a text area in which ever word can be colored in a different color (depending on syntax).
Is there a suitable component for this purpose.
Tks
Tullio