klipse and org-modesteemCreated with Sketch.

in common-lisp •  6 years ago  (edited)

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:

  1. Set org src block header ":exports none"
  2. Make a src block mirror in "#+BEGIN_QUOTE"
  3. 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:

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!