Code highlightling programmatically

Is there a library or something similar to highlight Kotlin code to any program (for example a Main function which displays read only source code or and Android app)? Preferably the same highlighting as IntelliJ uses.

1 Like