0
Do you know any library or method to display source code (Syntax Highlighting) in textview?
I need to do this for hundreds of codes (average of about 400), just for reading.
Something similar to the image below.
Thank you!
0
Do you know any library or method to display source code (Syntax Highlighting) in textview?
I need to do this for hundreds of codes (average of about 400), just for reading.
Something similar to the image below.
Thank you!
1
1: There is an open-source project called Shader Editor:
2: You can use HTML + Javascript: There are several syntax coloring tools in Javascript. See this. Is used in this blog.
Sources:
Browser other questions tagged android syntax
You are not signed in. Login or sign up in order to post.
Does it need to be editable? Or just
read-only
even?– Wakim
Just for real reading!
– Matheus Piscioneri
Matheus, take a look at this answer: http://stackoverflow.com/a/19787125/3404639, it uses the
Java Pretiffy
with a small adaptation. I think it should help start implementing.– Wakim