Question

I didn't manage to keep syntax highlightning of source blocks in org-mode html-export with C-c C-e h h, so I switched to htmlize as suggested in some other posts here. It does fine with manually doing M-x htmlize-buffer, except for the fact it leaves all org-mode keywords beginning with #+ in the exported html. I tried org-mode 7.x as well as 8.2.5 now in emacs 24.3.1. I already thought of writing a short python-script to fix this afterwards, but maybe someone knows a quicker solution?

TNX a lot for any suggestions

barrios

No correct solution

OTHER TIPS

  1. Set up org mode from git.
    mkdir ~/git
    cd ~/git
    git clone git://orgmode.org/org-mode.git
    cd org-mode
    make up2

2. Optionally, edit ~/git/org-mode/local.mk. I've set

    lispdir= ~/Dropbox/source/site-lisp/org

3. Create ~/tinit.el with contents:

    (add-to-list 'load-path "~/Dropbox/source/site-lisp/org")
    (require 'org)

4. Test it with

    emacs -Q -l ~/tinit.el ~/foo.org

If everything works, merge ~/tinit.el into your config.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top