Syntax Highlighting no textview Android

Asked

Viewed 83 times

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. inserir a descrição da imagem aqui

Thank you!

  • Does it need to be editable? Or just read-only even?

  • Just for real reading!

  • 1

    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.

1 answer

1

Browser other questions tagged

You are not signed in. Login or sign up in order to post.