# How to complie and run Kotlin code in webpage

**URL:** <https://discuss.kotlinlang.org/t/how-to-complie-and-run-kotlin-code-in-webpage/6755>\
**Category:** JavaScript\
**Created:** [February 23, 2018, 10:41am UTC](https://discuss.kotlinlang.org/t/how-to-complie-and-run-kotlin-code-in-webpage/6755 "2018-02-23T10:41:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![boboyangscript](https://avatars.discourse-cdn.com/v4/letter/b/94ad74/32.png) [@boboyangscript](https://discuss.kotlinlang.org/u/boboyangscript)\
**Post date:** [February 23, 2018, 10:41am UTC](https://discuss.kotlinlang.org/t/how-to-complie-and-run-kotlin-code-in-webpage/6755/1 "2018-02-23T10:41:32Z")

</div>

I want develop a webpage to study Kotin,and I wany write webpage with Kotin complie plug, thu,I can write code in webPage and run see the result. which like office [Tutorials](https://kotlinlang.org/docs/reference/basic-syntax.html#using-string-templates)  
like this:

 ![image](https://us1.discourse-cdn.com/flex019/uploads/kotlinlang/original/2X/d/ded78d96be43d6850c13b59397f5c0584e5b4aa6.png)

---

<div class="post-metadata">

**Author:** ![Anton.Bannykh](https://avatars.discourse-cdn.com/v4/letter/a/4491bb/32.png) [@Anton.Bannykh](https://discuss.kotlinlang.org/u/Anton.Bannykh)\
**Post date:** [February 27, 2018, 3:04pm UTC](https://discuss.kotlinlang.org/t/how-to-complie-and-run-kotlin-code-in-webpage/6755/2 "2018-02-27T15:04:56Z")

</div>

Hi! You send the source code to the server, compile it there and send the result back.  
You might want to use [kotlin-compiler-embeddable](https://bintray.com/bintray/jcenter/org.jetbrains.kotlin%3Akotlin-compiler-embeddable) for that.

Also the website source code is available on GitHub [here](https://github.com/JetBrains/kotlin-web-site).
