3 ms·
I'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
by ianthehenry 4y ago
I'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...