Skip to content

richardy2012/kotlin-runcode

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kotlin-runcode

Self-contained component to embed in websites for running Kotlin code.

Setup for development

Run npm start which will invoke webpack and set up an internal development server.

Setup for end use

Run webpack and copy the output of the dist folder to your scripts folder. Wrap any code you want in a box in a div tag. Use markdown=1 if it's markdown input.

```kotlin fun main(args: Array) { println("Hello") } ```

All that code will appear in an editable box. If you want to highlight a specific area to focus on a specific sample, use //sampleStart and //sampleEnd

```kotlin //sampleStart fun message(input: String) { println(input) } //sampleEnd fun main(args: Array) { message("Hello") } ```

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 69.3%
  • CSS 28.7%
  • HTML 2.0%