Closed sillykelvin closed 10 years ago
Implemented, the theme of source code block is Solarized Dark by default.
I'd like to use htmlize.el to hightlight, not a JavaScript library.
Is it still possible with recent org-page?
Yeah, it is possible, but there is not a config item like (setq highlight-renderer 'js/'htmlize)
to do this, you should:
op-template.el
(just a few lines).However, I strongly recommend using JavaScript library to do highlight job instead of htmlize.el:
Do you have any special reason for using htmlize.el instead of a highlighting JavaScript library?
I've "solved" it for myself by copying old op/render-content
function to my init.el
My reasons for using htmlize.el:
Now there is a variable to control this behavior: op/highlight-render
, thanks to @CodeFalling's contribution!
Org-export uses
htmlize.el
to hightlight code blocks, as it depends on Emacs' theme, so it is a little annoying: if the theme changes, all color will change, and those files contain source code blocks will change, and agit commit
is needed, though there is no actual useful content change!Consider using google prettify.js instead.