Ello again!

I need to change the color of certain strings of text in an EditText
(think code highlighting, like in Eclipse). I have the parser done
with java.util.regex.*, but I can't figure out how to change the color
of just certain portions of the text. Like this:

<code>
[green]<html>[/green]
[green]<body>[/green]
Hello [green]<a [blue]href="http://groups.google.com"[/blue] >[/green]
Google Groups [green]</a>[/green]
[green]</body>[/green]
[green]</html>[/green]
</code>

Where the colors in the brackets is what the color of the text would
be. EditText.setText() doesn't work for formatting like it does for a
TextView. Is this functionality available in an EditText? If so, how
do I use it?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to