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 "
", which should be replaced by "
" - Line number was filled with space to be aligned, which should be
Hope the 3 problems will be solved in vim 7.