This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-12-26
Channels
- # adventofcode (15)
- # beginners (7)
- # cider (2)
- # clojure (42)
- # clojure-austin (1)
- # clojure-europe (4)
- # clojure-nl (2)
- # clojurescript (19)
- # core-typed (1)
- # cursive (1)
- # datomic (10)
- # fulcro (30)
- # graphql (8)
- # hoplon (28)
- # hyperfiddle (16)
- # jobs (1)
- # off-topic (2)
- # philosophy (1)
- # re-frame (1)
- # shadow-cljs (30)
- # vim (3)
Not sure whether there's a ClojureScript adapter for this but PouchDB is a niceish clientside NoSQL db for JS.
what’s a lightweight thing to use to enable automatic paren closing and highlighting for ClojureScript in a simple app. I’m considering it for http://re-find.it
@souenzzo @mattly is this a thing independent from codemirror or do I use https://github.com/shaunlebron/parinfer-codemirror?
I think that the parinfer "raw" library has a function that turn a string into a string. what you can use onChange.
@dpsutton codemirror already does closing parens: https://www.dropbox.com/s/ltq43z3ox9j8tby/codemirror.gif?dl=0
OK, I've just gone through the learning / figuring out process for codemirror use. If you have a single line only, parinfer would be a useless addon. As you note, codemirror already has matchBrackets
and autoCloseBrackets
. And they work just fine
Parinfer does help a bit on single lines - if you have '0 1 2 3' and type a [ before the 1, parinfer makes it '0 [1 2 3]'. If you then type ] after the 1, the inferred one goes away for '0 [1] 2 3' - stays balanced.
Hmmm, I may stand corrected - that would be a nice to have for single line afterall...
OK, I've just gone through the learning / figuring out process for codemirror use. If you have a single line only, parinfer would be a useless addon. As you note, codemirror already has matchBrackets
and autoCloseBrackets
. And they work just fine
Hmmm, I may stand corrected - that would be a nice to have for single line afterall...