Created
December 6, 2016 18:09
-
-
Save bzg/5f9a952208cf8d35220a41a8ff857faa to your computer and use it in GitHub Desktop.
Org-mode + KLIPSE to demo Clojure code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#+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> |
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
Now export with C-e h h and browse the .html file. Da-da!
See https://github.com/viebel/klipse for more.