https://kotlinlang.org logo
#getting-started
Title
# getting-started
m

Matt Yokan

04/01/2022, 2:47 AM
Are there any good options for syntax highlighting Kotlin code for the web? We're working on some documentation and wondering if there are any decent options. We were investigating the concept of trying to precompute them with our doc workflow by somehow using the syntax highlighting system used by IntelliJ (we looked at trying to take advantage of the related text framework) but with no luck. Has anyone had any luck in this regard?
e

ephemient

04/01/2022, 2:57 AM
GitHub uses Pygments, Kotlin Playground uses highlight.js, Dokka uses Prism.js (AFAIK)
2 Views