2 ms·
Is there any particular advantage to using something like this for static code samples instead of just pre-rendering the HTML and CSS? I usually just export my
by tikhonj 14y ago
Is there any particular advantage to using something like this for static code samples instead of just pre-rendering the HTML and CSS?
I usually just export my code from Emacs via M-x htmlfontify-buffer which dumps a bunch of CSS and HTML. This also allows me to take advantage of my different Emacs themes. It also outputs CSS with good class names like "string" or "keyword". If you add your own custom faces, it just uses the name you gave them. This means the coloring is exactly as customizable as it is in Emacs. It is also very easy to theme with CSS to match your site if you don't like any of the Emacs color themes.
- jergason 14y agoI have used Vim's similar feature, `:TOhtml`.