Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Org-mode + KLIPSE to demo Clojure code
#+html_head_extra: <link rel="stylesheet" type="text/css" href="https://storage.googleapis.com/app.klipse.tech/css/codemirror.css" />
Some Clojure code:
#+BEGIN_SRC clojure
(map inc '(1 2 3))
#+END_SRC
That's it.
#+html: <script type="text/javascript">window.klipse_settings = {selector: '.src-clojure'};</script>
#+html: <script src="https://storage.googleapis.com/app.klipse.tech/plugin/js/klipse_plugin.js"></script>
@bzg

This comment has been minimized.

Copy link
Owner Author

commented Dec 6, 2016

Now export with C-e h h and browse the .html file. Da-da!

See https://github.com/viebel/klipse for more.

@viebel

This comment has been minimized.

Copy link

commented Dec 8, 2016

Nice! You can even put the codemirror.css at the end if you want. Then the 3 lines of script tags are bundled together...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.