A library providing a ClojureScript viewer and editor that you can embed in any website. No, that was not a complete sentence. And neither is this. Be a rebel, like me, by using paren-soup. CodeMirror is nice if you want to support other languages, but why would you?
Here are the features:
- Syntax highlighting
- Rainbow delimiters
- Inline reader errors
- InstaREPL (à la Light Table)
- Automatic indentation fixing (like aggressive-indent-mode)
- Console mode
To use paren-soup in your own website, just go to the releases section and download the latest files. In your HTML, link to one of the CSS files and use the following markup:
If you just want a viewer, not an editor, leave out the
textContent property. There is no API to learn!
I use Boot. To build the editor and run a server on http://localhost:3000, run
boot run. To build a release version, run
A prebuilt copy of the compiler is already in the
resources directory. If you want to build it yourself, go in the
compiler directory and run
All files that originate from this project are dedicated to the public domain. I would love pull requests, and will assume that they are also dedicated to the public domain.