syntaxhighlighter icon indicating copy to clipboard operation
syntaxhighlighter copied to clipboard

Add highlighting for Kotlin

Open daincredibleholg opened this issue 4 years ago • 2 comments

Is your feature request related to a problem? Please describe

I am one of the Java Advent organizers and with Kotlin's popularity going further through the roof it starts getting problematic that articles about Kotlin can't have properly highlighted code snippets.

Describe the solution you'd like

In addition to [java], a [kotlin] block (and similar) would be helpful

daincredibleholg avatar Nov 29 '21 22:11 daincredibleholg

Hi @daincredibleholg, in my 2022 article for Java Advent I used embedded GitHub Gists snippets, see https://www.google.com/amp/s/www.javaadvent.com/2022/12/how-i-got-rid-of-yaml-in-githubs-ci.html/amp. The only disadvantage I see is that the article isn't self-contained, so if someone removes the gist, the article will lose the piece of code as well. Anyway, I think it's a good workaround at least.

krzema12 avatar Nov 20 '24 07:11 krzema12

You are absolutely correct, @krzema12. For now, it should do. We need a more portable / independent fix, though.

daincredibleholg avatar Nov 27 '24 17:11 daincredibleholg