Skip to content

Instantly share code, notes, and snippets.

@bzg
Created December 6, 2016 18:09
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bzg/5f9a952208cf8d35220a41a8ff857faa to your computer and use it in GitHub Desktop.
Save bzg/5f9a952208cf8d35220a41a8ff857faa to your computer and use it in GitHub Desktop.
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
Copy link
Author

bzg 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
Copy link

viebel 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