orgzly-android icon indicating copy to clipboard operation
orgzly-android copied to clipboard

[feature request] strongly ask for syntax highlighting for Org src blocks!!!

Open stardiviner opened this issue 7 years ago • 8 comments

I have searched for existing issues that may be the same as or related to mine. 👼

I'm submitting a feature request.

I use Orgzly as an Org files viewer on mobile phone, I sync lots of Org reference notes files. syntax highlighting is very important for viewing src blocks.

stardiviner avatar Sep 13 '18 12:09 stardiviner

Is there a good java library for syntax highlighting or orgzly would need to implement highlighting itself?

bbigras avatar Oct 22 '18 12:10 bbigras

Is there a good java library for syntax highlighting or orgzly would need to implement highlighting itself?

That's a good question. Implementing this doesn't sound trivial.

nevenz avatar Oct 23 '18 18:10 nevenz

I did a little search (almost know nothing about Java...) Here are some links might be helpful:

  • https://stackoverflow.com/questions/11987660/android-syntax-highlighting
  • https://stackoverflow.com/questions/221570/what-code-highlighting-libs-are-there-for-java
  • https://bitbucket.org/hski/java-syntax-highlighter
  • https://github.com/bobbylight/RSyntaxTextArea

stardiviner avatar Oct 24 '18 01:10 stardiviner

Hi. If syntax highlighting is too complex, it would be useful to have at least some block mode. At the moment I cannot use it for storing snippets of code because it is interpreted by orgzly as formatted text. Thanks

Michele100 avatar Jun 01 '19 09:06 Michele100

I wonder if orgzly could use a webview for code blocks. There must be a lot of js libs for syntax highlighting.

bbigras avatar Jun 02 '19 18:06 bbigras

I wonder if the syntect Rust library could be used for this. It should be pretty fast and light. I think you can use a .so in Android apps.

Or maybe it could be compiled to wasm and used in a webview.

bbigras avatar Apr 01 '20 15:04 bbigras

#23 is a prerequisite

WillPower3309 avatar Dec 07 '21 06:12 WillPower3309

Perhaps this could be of some help? https://github.com/hossain-khan/android-syntax-highlighter

DanielKonopka avatar Feb 17 '22 18:02 DanielKonopka