xref: /vim-8.2.3635/runtime/plugin/tohtml.vim (revision 7c86f4cc)
1071d4279SBram Moolenaar" Vim plugin for converting a syntax highlighted file to HTML.
2349b2fb0SBram Moolenaar" Maintainer: Ben Fritz <[email protected]>
3*7c86f4ccSBram Moolenaar" Last Change: 2010 Jul 16
4b02cbe34SBram Moolenaar"
5349b2fb0SBram Moolenaar" The core of the code is in $VIMRUNTIME/autoload/tohtml.vim and
6349b2fb0SBram Moolenaar" $VIMRUNTIME/syntax/2html.vim
7071d4279SBram Moolenaar
8b02cbe34SBram Moolenaar" Define the :TOhtml command when:
9b02cbe34SBram Moolenaar" - 'compatible' is not set
10b02cbe34SBram Moolenaar" - this plugin was not already loaded
11b02cbe34SBram Moolenaar" - user commands are available.
12071d4279SBram Moolenaarif !&cp && !exists(":TOhtml") && has("user_commands")
13b02cbe34SBram Moolenaar  command -range=% TOhtml :call tohtml#Convert2HTML(<line1>, <line2>)
14071d4279SBram Moolenaarendif
15349b2fb0SBram Moolenaar
16349b2fb0SBram Moolenaar" Make sure any patches will probably use consistent indent
17*7c86f4ccSBram Moolenaar"   vim: ts=8 sw=2 sts=2 noet
18