orgzly-android
orgzly-android copied to clipboard
[feature request] strongly ask for syntax highlighting for Org src blocks!!!
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.
Is there a good java library for syntax highlighting or orgzly would need to implement highlighting itself?
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.
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
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
I wonder if orgzly could use a webview for code blocks. There must be a lot of js libs for syntax highlighting.
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.
#23 is a prerequisite
Perhaps this could be of some help? https://github.com/hossain-khan/android-syntax-highlighter