halilozercan / compose-richtext

A collection of Compose libraries for advanced text formatting and alternative display types.
https://halilibo.com/compose-richtext
Apache License 2.0
787 stars 65 forks source link

Code syntax highlighting #118

Open tananaev opened 1 year ago

tananaev commented 1 year ago

Have you thought about adding support for syntax highlighting in code blocks? Maybe not directly into the library, but having some interface that a third party module can implement to do the highlighting?

Would you accept a pull request that implements an option like this? And if yes, please let me know if you have any ideas on what's the implementation should look like and if you have any preferences.

halilozercan commented 1 year ago

There is no reason not to. We can accept pull requests but the library is currently having a problem making a new release thanks to all the changes to Gradle and signing plugin. But in the meantime we can add more features to the library which can be available via the repo.

halilozercan commented 1 year ago

An update; those release problems are solved now.

tananaev commented 1 year ago

Awesome. Thanks for the update. I hope to have some time to work on it soon.

zayass commented 3 months ago

Hey folks. Do you have some progress on this? @halilozercan what do you think about adding an external dependency for such a thing? For example this one https://github.com/SnipMeDev/KodeView?