On Fri, May 19, 2006 at 06:13:21PM +0800, Japerlh wrote: > The html file generated with the command :TOhtml doesn't look like the > same as in VIM. > Seems like font information is lost. > Is there anybody having any idea about that? > Thanks.
This command :source's the file $VIMRUNTIME/syntax/2html.vim . If you search for "font" in this file, you will find font-family: Courier, monospace; in several places. The easy way out is to hack 2html.vim so that it uses whatever fonts you prefer. The non-hack solution is to choose the font based on the value of the 'guifont' option. This would take some work, especially since font names are so different on different systems. HTH --Benji Fisher