Fork me on GitHub
#sci
<
2023-09-24
>
Jakub HolĂ˝ (HolyJak)15:09:46

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? 🙏

âś… 1
Jakub HolĂ˝ (HolyJak)15:09:16

Awesome, thank you! I never heard about it before đź‘€

borkdude15:09:14

it's also used in https://4clojure.oxal.org/

đź‘Ť 1
Jakub HolĂ˝ (HolyJak)07:09:47

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…)

Jakub HolĂ˝ (HolyJak)07:09:16

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…

borkdude09:09:18

@U0522TWDA 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

đź‘€ 1
borkdude09:09:51

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

Jakub HolĂ˝ (HolyJak)15:09:48

A pity I don’t have windows :’(

Jakub HolĂ˝ (HolyJak)16:09:22

What is the difference between clojure-lang and clojure-mode, do you know?

borkdude16:09:39

clojure-mode uses lang-clojure, lang-clojure is a more low level building block

🙏 1
borkdude16:09:11

lang-clojure can be used directly from npm, clojure-mode only from CLJS at the moment (but working on it)

đź‘Ť 1
Jakub HolĂ˝ (HolyJak)16:09:52

It’s fine for me, I need to run some build anyway to pack it with my sci.config and fulcro…