I am using "emacs 24.4.1; htmlfontify 0.21" and try to htmlfontify a ansi-term buffer. But the style in the generated HTML file does not contain colors. This is how it looks:
span.term-bold-0004 { font-size: 105%; text-decoration: none; }
span.term-bold-0004 a { font-size: 105%; text-decoration: underline; }
span.term-bold-0006 { font-size: 105%; text-decoration: none; }
span.term-bold-0006 a { font-size: 105%; text-decoration: underline; }
span.term-bold-0003 { font-size: 105%; text-decoration: none; }
span.term-bold-0003 a { font-size: 105%; text-decoration: underline; }
span.term-bold-0007 { font-size: 105%; text-decoration: none; }
span.term-bold-0007 a { font-size: 105%; text-decoration: underline; }
When I htmlfontify a source file the CSS contains the colors:
span.function-name { color: #0000ff; font-family: Lucida Console; font-stretch: semi-condensed; font-weight: 500; font-style: normal; background: #ffffff; font-size: 14pt; text-decoration: none; }
What do I have to do to get the colors from the ansi-term right?
htmlfontify
is not for HTML, it generates HTML. I would like to generate HTML from a coloredansi-term
buffer in order to show the colors in a blog.ansi-term
buffer inemacs
that shows color. They want to save that into a file readable by some other program. HTML is a natural export format for portable text with color information. The OP is rightfully surprised that doing that works for source code and not foransi-term
buffers.