klipse and org-mode
Based on blog "A new way of blogging about Common Lisp"
http://blog.klipse.tech/lisp/2018/05/07/blog-common-lisp.html
, I temporarilly(<2018-05-10 Thu 16:50:21 UTC+08:00>) find one way to use klipse in org-mode:
- Set org src block header ":exports none"
- Make a src block mirror in "#+BEGIN_QUOTE"
- klipse configure must be after all src blocks
Shaped like:
#+BEGIN_SRC lisp :exports none
(print "hello")
#+END_SRC
#+ATTR_HTML: :class language-klipse-clisp
#+BEGIN_QUOTE
(print "hello common lisp")
#+END_QUOTE
#+BEGIN_EXPORT html
<link rel="stylesheet" type="text/css" href="https://storage.googleapis.com/app.klipse.tech/css/codemirror.css">
<script>
window.klipse_settings = {
codemirror_options_in: {
lineWrapping: true,
autoCloseBrackets: true
},
codemirror_options_out: {
lineWrapping: true
},
beautify_strings: true,
selector_eval_clisp: '.language-klipse-clisp',
};
</script>
<script src="https://storage.googleapis.com/app.klipse.tech/plugin_prod/js/klipse_plugin.min.js?v=7.4.0">
</script>
#+END_EXPORT
When opening the exported html in browser: