Code formatting?
theophilusx opened this issue · 2 comments
theophilusx commented
It isn't clear to me how code formatting should be addressed within liquid. Is this something the use needs to add using one of the may clojure code formatting libraries and if so, is there a recommended library?
mogenslund commented
Hi @theophilusx
I you mean something like paredit or parinfer, I have created an extensions that wraps an existing perinfer-library https://github.com/mogenslund/liquid-parinfer
It also contains information about how to "install" it.
theophilusx commented
I was really thiniking something more basic. For example, when I hit
return, having the cursor go to the appropriate indentation level on the
next line rather than always going back to column 0 or code being
reformatted to fit in with the appropriate context when it is moved (cut
and pasted). I would certainly be interested in something like paredit,
but have never used parinfer.
I will check out your extension as I suspect it will contain sufficient
examples to show how something like cljfmt to one of the many other
libraries could be added.
…--
Tim Cross