Allows embedding interactive Kotlin playground to any post via [kotlin]
shortcode.
- Download latest release.
- Go to WordPress
Admin Panel -> Plugins -> Add New
, chooseUpload Plugin
, select file from your computer and pressInstall now
.
Use [kotlin]code...[/kotlin]
shortcode as usual. Example:
[kotlin]
fun main(args: Array<String>) {
print("Hello, World!")
}
[/kotlin]
Creates read-only playground without ability to edit and run code. Example [kotlin runnable="false"]code...[/kotlin]
.
Hide code snippet with value false
outside of markers //sampleStart
and //sampleEnd
.
Creates playground with different target platforms
Minimum target Kotlin compiler version
Whether to use the context-sensitive indentation.
How many spaces a block should be indented.
Editor IntelliJ IDEA themes.
Target Kotlin compiler version: