3 ms·
Is there a good framework for creating the same online ide/code demo as yours? I want to make a live tutorial, I'm thinking about creating a static site genera
by billconan 4y ago
Is there a good framework for creating the same online ide/code demo as yours?
I want to make a live tutorial, I'm thinking about creating a static site generator to generate the same kind of demo you have here.
- ianthehenry 4y agoI'm using https://codemirror.net/ https://codemirror.net/ as the editor, and I'm basically just running an onchange event on every keystroke. Not very fancy or sophisticated. The details of what exactly happens in that event are very specific to WASM/Janet/Bauble, but I think you could do something similar with JavaScript code pretty trivially. Long-term I think I'd rather break this out into a separate page with multiple canvases inline in the text -- so you can more easily scan through it/go back to previous sections -- but I was lazy and this was the easiest way to get it done. Also, this is just a static site. With hand-written HTML because I've been too lazy to configure a static site generator yet...
- deleted 4y ago[deleted]