i'm writing an application which consists some code snippets.
as the usual manner it can be displayed in TextView but i want to highlight some keywords say "main" , "int" , "class", "return" , etc. after lots of time i figured out it can be done using html and css that loads to webview up , but it has some disadvantages like slow rendering so it makes bad user Experience .
is there a better way to approach the solution ? it would be great to give me some code example...
thanks