Allows embedding interactive Kotlin playground for coursera lessons.
Plugin current version: 0.1.0 🎉
- Download latest release.
- Go to coursera.org
- From the left sidebar, select Admin
- Find your course and click Editnext to the course title
- From the left sidebar, click Content and select Edit Content
- Find the lesson you want to add a plugin to, or create a new lesson
- From the ADD ITEMdropdown menu, selectUngraded Plugin
- Click Choose Plugin to select the plugin you want to add
- Click Continue and Edit Configuration, if needed
- When you’re done, click Review & Publish
Find configuration panel on Edit Configuration and set code snippet:
{
  "code": "fun main(args: Array<String>) {\n println(\"Hello world\")\n}",
  "platform": "java",
  "link": "https://kotlinlang.org/",
  "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.",
  "head": "Hello World!"
}- Default theme: idea.
- Default kotlin version : latest stable version.
Attributes:
- code: kotlin code. required
- platrorm="java|js|canvas|junit": kotlin target compiler platform. required
- head: text header of the code snippet. optional
- link: link with text- [Solution]after playground. optional
- task: text task description of the code snippet. optional
More information about different attributes and markers see in Kotlin Playground documentation
