kotlin-playground
kotlin-playground copied to clipboard
Integrate with reveal.js
It would be nice to integrate this with reveal.js so that we can run code in a presentation, which should be possible. Do you happen to have something like this already?
Hi! Actually no and I haven't got any plans to integrate this with reveal.js. For example, if you need to add playground to your slides you can load library from script tag like
<script src="https://unpkg.com/kotlin-playground@1" selector="code" />
So if you have any ideas and times you can become a contributor 🎉😊
I gave it a try - in general it works:
but there are some features missing and little issues present that would optimize Playground for slide shows:
- built-in ability to increase font size. I could only hack through CSS which works only partially
- running the code programatically (ability to automatically click "Run" when showing the slide)
- each line gets weird shadow, I think it's not by design
@krzema12, about the font size - we already have KT-30099.
I wrote a Kotlin DSL wrapper for reveal.js. You can see it at: https://kslides.com It supports Kotlin Playground via an iframe. You can see an example here: https://kslides.com/#/playground