https://clojurians.slack.com/archives/C02FBBU61A9/p1695558689202279
What is a good way to include interactive, SCI-powered examples in a web page? Currently I use just a textarea but something with code highlighting and perhaps some editing niceties would be better. Klipse, perhaps? What do you folks use? 🙏
Awesome, thank you! I never heard about it before đź‘€
Thx for the pointer! I did not really understand how to integrate it into my static blog from c.-m.’s page, so looking at 4clojure might help. (I guess I need to use shadow to build my own release .js with c.-m. and sci…)
Looking at both clojure-mode’s demo and https://github.com/oxalorg/4ever-clojure/blob/main/src/app/sci.cljs , it looks very Ikea-ish, i.e. considerable assembly required…
@holyjak for a lighter weight integration, you can check out the source of https://babashka.org/scittle/codemirror.html - it's doe all through lang-clojure which is available via npm
Re-trigger: there's this issue which fails stuff. I'll not let that get in the way of your PR: https://github.com/babashka/sci/issues/902
A pity I don’t have windows :’(
What is the difference between clojure-lang and clojure-mode, do you know?
clojure-mode uses lang-clojure, lang-clojure is a more low level building block
lang-clojure can be used directly from npm, clojure-mode only from CLJS at the moment (but working on it)
It’s fine for me, I need to run some build anyway to pack it with my sci.config and fulcro…
yeah