Updates for :TOhtml. (Ben Fritz)

This commit is contained in:
Bram Moolenaar
2010-08-07 15:47:30 +02:00
parent 706e84b3ea
commit bebca9daa4
3 changed files with 138 additions and 94 deletions

View File

@ -1,24 +1,22 @@
" Vim plugin for converting a syntax highlighted file to HTML.
" Maintainer: Ben Fritz <fritzophrenic@gmail.com>
" Last Change: 2010 Aug 02
" Last Change: 2010 Aug 07
"
" The core of the code is in $VIMRUNTIME/autoload/tohtml.vim and
" $VIMRUNTIME/syntax/2html.vim
"
" TODO:
" * Bug: error thrown when nowrapscan is set
" * Diff mode with xhtml gives invalid markup
" * Diff mode does not determine encoding
" * Line number column has one character too few on empty lines
" without CSS.
" * Add extra meta info (generation time, etc.)
" * Fix strict doctype for other options?
" * Tidy up so we can use strict doctype more?
" * TODO comments for code cleanup scattered throughout
if exists('g:loaded_2html_plugin')
finish
endif
let g:loaded_2html_plugin = 'vim7.3_v3'
let g:loaded_2html_plugin = 'vim7.3_v4'
" Define the :TOhtml command when:
" - 'compatible' is not set