La Vita è Bella
Wednesday, December 14, 2005
3 problems in vim's ":TOhtml" feature
":TOhtml" is a great feature in vim. With it, we can generate syntax highlighted html for our code.
Set the following settings will make the generated html code more standard:
let html_use_css = 1
let html_no_pre = 1
But there're still 3 problems:
- The "body" tag begins with a "span" tag, which isn't allowed in xhtml. The whole body should be surrounded by a "p" tag.
- At the end of every line, there's a "<br>", which should be replaced by "<br />"
- Line number was filled with space to be aligned, which should be
Hope the 3 problems will be solved in vim 7.
tags: vim, html
10:26:06 by fishy - w3c - Permanent Link
3 comments - 1 trackback - karma: -13 [+/-]


