La Vita è Bella

2005-12-14

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 "
    ", which should be replaced by "
    "
  3. Line number was filled with space to be aligned, which should be  

Hope the 3 problems will be solved in vim 7.

10:26:06 by fishy - Permanent Link

May the Force be with you. RAmen