Kotlin Playground Plugin
WordPress plugin which allows to embed interactive Kotlin playground to any post via [kotlin] shortcode
by kotlin · github.com/kotlin/kotlin-playground-wp-plugin · website
★ 37stars
342release downloads
≈20active sites
7forks
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/kotlin/kotlin-playground-wp-plugin/releases/download/v0.0.4/kotlin-playground-wp-plugin.zipFrom the readme
Kotlin Playground Wordpress Plugin
Allows embedding interactive Kotlin playground to any post via [kotlin] shortcode.
Installation
1. Download latest release.
2. Go to WordPress Admin Panel - Plugins - Add New, choose Upload Plugin, select file from your computer and press Install now.
Usage
Use [kotlin]code...[/kotlin] shortcode as usual. Example:
Options
runnable="true|false" (true by default)
Creates read-only playground without ability to edit and run code. Example [kotlin runnable="false"]code...[/kotlin].
folded-button="true|false" (true by default)
Hide code snippet with value false outside of markers //sampleStart and //sampleEnd.
platform="java|js|junit|canvas" (java by default)
Creates playground with different target platforms
min-version="1.2"
Minimum target Kotlin compiler version
auto-indent="true|false" (false by default)
Whether to use the context-sensitive indentation.
indent="2|4" (4 by default)
How many spaces a block should be indented.
theme="idea|darcula|default"
Editor IntelliJ IDEA themes.
version="1.0.7 (latest stable version by default)
Target Kotlin compiler version:
Read the full README on GitHub →
Releases
| Tag | Published | Asset | Downloads |
|---|---|---|---|
| v0.0.4 | Jul 26, 2018 | kotlin-playground-wp-plugin.zip | 240 |
| v0.0.3 | Apr 27, 2018 | kotlin-playground-wp-plugin.zip | 18 |
| v0.0.2 | Apr 16, 2018 | kotlin-playground-wp-plugin.zip | 63 |
| 0.0.1 | Dec 28, 2017 | kotlin-playground-wp-plugin.zip | 21 |
Active-site estimate ≈20 comes from the median of recent superseded releases. Method.