Emacs htmlize in batch mode?

后端 未结 5 510
栀梦
栀梦 2021-02-06 08:50

I like to use htmlize-file in emacs to turn clojure source files into html.

I want to use it from the linux command line instead, or programmatically from clojure itself

5条回答
  •  说谎
    说谎 (楼主)
    2021-02-06 09:57

    The following Elisp code tells Htmlize to emit CSS class names instead of raw styles.

    (setq org-export-htmlize-output-type 'css)
    

    Then you can add CSS to your HTML file to get whatever colors you want. This works with Emacs in batch mode.

提交回复
热议问题