Skip to content

Commit a9c1593

Browse files
chore(readme): add description for new features
1 parent 0d12f26 commit a9c1593

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

README.md

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Kotlin Playground Coursera
2-
Allows embedding interactive Kotlin playground to [coursera](https://www.coursera.org/) lessons.
2+
Allows embedding interactive [Kotlin playground](https://github.com/JetBrains/kotlin-playground) to [coursera](https://www.coursera.org/) lessons.
33

44
Plugin Current version: 0.0.1 :tada:
55

6-
<img width="1920" alt="screen shot 2018-08-08 at 1 57 26 pm" src="https://user-images.githubusercontent.com/10503748/43833322-0984b27c-9b13-11e8-94cf-41d7653217dd.png">
6+
<img width="1425" alt="screen shot 2018-08-09 at 1 07 00 pm" src="https://user-images.githubusercontent.com/10503748/43892659-2b0823bc-9bd5-11e8-989a-40e101a5703a.png">
77

88
## Installation
99

@@ -24,9 +24,20 @@ Find configuration panel on `Edit Configuration` and set code snippet:
2424

2525
```json
2626
{
27-
"code": "fun main(args: Array<String>) {\n println(\"Hello world\")\n}"
27+
"code": "fun main(args: Array<String>) {\n println(\"Hello world\")\n}",
28+
"platform": "java",
29+
"task": "We declare a package-level function main which returns Unit and takes\nan Array of strings as a parameter. Note that semicolons are optional.",
30+
"head": "Hello World!"
2831
}
2932
```
30-
* Default theme: `idea`.
31-
* Default platform: `JVM`.
32-
* Default kotlin version : [latest stable](https://try.kotlinlang.org/kotlinServer?type=getKotlinVersions) version.
33+
- Default theme: `idea`.
34+
- Default kotlin version : [latest stable](https://try.kotlinlang.org/kotlinServer?type=getKotlinVersions) version.
35+
36+
Attributes:
37+
38+
- `code`: kotlin code. **required**
39+
- `platrorm="java|js|canvas|junit"`: kotlin target compiler platform. **required**
40+
- `head`: text header of the code snippet. **optional**
41+
- `task`: text task description of the code snippet. **optional**
42+
43+
More information about different attributes and markers see in [Kotlin Playground documentation](https://github.com/JetBrains/kotlin-playground/blob/master/README.md)

0 commit comments

Comments
 (0)