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:

  1. The "body" tag begins with a "span" tag, which isn't allowed in xhtml. The whole body should be surrounded by a "p" tag.
  2. At the end of every line, there's a "<br>", which should be replaced by "<br />"
  3. Line number was filled with space to be aligned, which should be &nbsp;

Hope the 3 problems will be solved in vim 7.



tags: ,

10:26:06 by fishy - w3c - Permanent Link

3 comments - 1 trackback - karma: -13 [+/-]

May the Force be with you. RAmen