xref: /vim-8.2.3635/runtime/plugin/tohtml.vim (revision 7510fe74)
1" Vim plugin for converting a syntax highlighted file to HTML.
2" Maintainer: Ben Fritz <[email protected]>
3" Last Change: 2010 July 24
4"
5" The core of the code is in $VIMRUNTIME/autoload/tohtml.vim and
6" $VIMRUNTIME/syntax/2html.vim
7
8if exists('g:loaded_2html_plugin')
9  finish
10endif
11let g:loaded_2html_plugin = 'vim7.3_v1'
12
13" Define the :TOhtml command when:
14" - 'compatible' is not set
15" - this plugin was not already loaded
16" - user commands are available.
17if !&cp && !exists(":TOhtml") && has("user_commands")
18  command -range=% TOhtml :call tohtml#Convert2HTML(<line1>, <line2>)
19endif
20
21" Make sure any patches will probably use consistent indent
22"   vim: ts=8 sw=2 sts=2 noet
23