sci

borkdude 2023-09-24T12:34:07.295529Z

https://clojurians.slack.com/archives/C02FBBU61A9/p1695558689202279

🙀 1
Jakub HolĂ˝ (HolyJak) 2023-09-24T15:30:46.918409Z

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
borkdude 2023-09-24T15:31:45.038419Z

https://nextjournal.github.io/clojure-mode/

1
Jakub HolĂ˝ (HolyJak) 2023-09-24T15:32:16.541259Z

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

borkdude 2023-09-24T15:38:14.849769Z

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

👍 1
Jakub HolĂ˝ (HolyJak) 2023-09-25T07:17:47.363229Z

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) 2023-09-25T07:52:16.853299Z

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…

borkdude 2023-09-25T09:50:18.172799Z

@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

đź‘€ 1
borkdude 2023-09-25T09:56:51.185849Z

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) 2023-09-25T15:50:48.883619Z

A pity I don’t have windows :’(

Jakub HolĂ˝ (HolyJak) 2023-09-25T16:07:22.370479Z

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

borkdude 2023-09-25T16:08:39.896359Z

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

🙏 1
borkdude 2023-09-25T16:09:11.575439Z

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

👍 1
Jakub HolĂ˝ (HolyJak) 2023-09-25T16:09:52.947329Z

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

borkdude 2023-09-25T16:10:11.312189Z

yeah