Android Syntax Highlighting?
Does anyone know of syntax highlighting libraries which work on Android? I've looked at jsyntaxpane but that doesn't seem to support Android. For read-only syntax highlighting, you have two options: Find a Java library that can syntax highlight and generate HTML using <font color=""> (i.e., no CSS). You can then use Html.fromHtml() to create a Spanned object which you can hand to a TextView . Find a Java library that can syntax highlight and generate any sort of HTML. You can then display that in a WebView . This appears to be what the android-codepad project a commenter linked to does. If you