comparison runtime/plugin/tohtml.vim @ 2788:0877b8d6370e

Updated runtime files.
author Bram Moolenaar <bram@vim.org>
date Thu, 28 Apr 2011 19:02:44 +0200
parents 85c5a72551e2
children fd09a9c8468e
comparison
equal deleted inserted replaced
2787:52775cc91f18 2788:0877b8d6370e
1 " Vim plugin for converting a syntax highlighted file to HTML. 1 " Vim plugin for converting a syntax highlighted file to HTML.
2 " Maintainer: Ben Fritz <fritzophrenic@gmail.com> 2 " Maintainer: Ben Fritz <fritzophrenic@gmail.com>
3 " Last Change: 2011 Jan 06 3 " Last Change: 2011 Apr 09
4 " 4 "
5 " The core of the code is in $VIMRUNTIME/autoload/tohtml.vim and 5 " The core of the code is in $VIMRUNTIME/autoload/tohtml.vim and
6 " $VIMRUNTIME/syntax/2html.vim 6 " $VIMRUNTIME/syntax/2html.vim
7 " 7 "
8 " TODO: 8 " TODO:
9 " * Options for generating the CSS in external style sheets. New :TOcss
10 " command to convert the current color scheme into a (mostly) generic CSS
11 " stylesheet which can be re-used. Alternate stylesheet support?
12 " * Pull in code from http://www.vim.org/scripts/script.php?script_id=3113 :
13 " - listchars support
14 " - full-line background highlight
15 " - other?
16 " * Font auto-detection similar to
17 " http://www.vim.org/scripts/script.php?script_id=2384
9 " * Explicitly trigger IE8+ Standards Mode? 18 " * Explicitly trigger IE8+ Standards Mode?
10 " * Make it so deleted lines in a diff don't create side-scrolling 19 " * Make it so deleted lines in a diff don't create side-scrolling
11 " * Restore open/closed folds and cursor position after processing each file 20 " * Restore open/closed folds and cursor position after processing each file
12 " with option not to restore for speed increase 21 " with option not to restore for speed increase
13 " * Undercurl support via dotted bottom border? 22 " * Undercurl support via dotted bottom border?
17 " buffer before we're done (5000 or so lines should do it) 26 " buffer before we're done (5000 or so lines should do it)
18 " * TODO comments for code cleanup scattered throughout 27 " * TODO comments for code cleanup scattered throughout
19 " 28 "
20 " 29 "
21 " Changelog: 30 " Changelog:
22 " 7.3_v8 (this version): Add html_expand_tabs option to allow leaving tab 31 " 7.3_v9 (this version): Add html_pre_wrap option active with html_use_css and
32 " without html_no_pre, default value same as 'wrap'
33 " option, (Andy Spencer). Don't use 'fileencoding' for
34 " converted document encoding if 'buftype' indicates a
35 " special buffer which isn't written.
36 " 7.3_v8 (85c5a72551e2): Add html_expand_tabs option to allow leaving tab
23 " characters in generated output (Andy Spencer). Escape 37 " characters in generated output (Andy Spencer). Escape
24 " text that looks like a modeline so Vim doesn't use 38 " text that looks like a modeline so Vim doesn't use
25 " anything in the converted HTML as a modeline. 39 " anything in the converted HTML as a modeline.
26 " Bugfixes: Fix folding when a fold starts before the 40 " Bugfixes: Fix folding when a fold starts before the
27 " conversion range. Remove fold column when there are 41 " conversion range. Remove fold column when there are
59 " Pre-v1 baseline: Mercurial changeset 3c9324c0800e 73 " Pre-v1 baseline: Mercurial changeset 3c9324c0800e
60 74
61 if exists('g:loaded_2html_plugin') 75 if exists('g:loaded_2html_plugin')
62 finish 76 finish
63 endif 77 endif
64 let g:loaded_2html_plugin = 'vim7.3_v8' 78 let g:loaded_2html_plugin = 'vim7.3_v9'
65 79
66 " Define the :TOhtml command when: 80 " Define the :TOhtml command when:
67 " - 'compatible' is not set 81 " - 'compatible' is not set
68 " - this plugin was not already loaded 82 " - this plugin was not already loaded
69 " - user commands are available. 83 " - user commands are available.