blob: 867b85d40d59c290bf324186171fcd3f7591807a [file] [log] [blame]
Bram Moolenaar071d4272004-06-13 20:20:40 +00001" Vim plugin for converting a syntax highlighted file to HTML.
Bram Moolenaar349b2fb2010-07-16 20:35:36 +02002" Maintainer: Ben Fritz <fritzophrenic@gmail.com>
Bram Moolenaar7510fe72010-07-25 12:46:44 +02003" Last Change: 2010 July 24
Bram Moolenaarb02cbe32010-07-11 22:38:52 +02004"
Bram Moolenaar349b2fb2010-07-16 20:35:36 +02005" The core of the code is in $VIMRUNTIME/autoload/tohtml.vim and
6" $VIMRUNTIME/syntax/2html.vim
Bram Moolenaar071d4272004-06-13 20:20:40 +00007
Bram Moolenaar7510fe72010-07-25 12:46:44 +02008if exists('g:loaded_2html_plugin')
9 finish
10endif
11let g:loaded_2html_plugin = 'vim7.3_v1'
12
Bram Moolenaarb02cbe32010-07-11 22:38:52 +020013" Define the :TOhtml command when:
14" - 'compatible' is not set
15" - this plugin was not already loaded
16" - user commands are available.
Bram Moolenaar071d4272004-06-13 20:20:40 +000017if !&cp && !exists(":TOhtml") && has("user_commands")
Bram Moolenaarb02cbe32010-07-11 22:38:52 +020018 command -range=% TOhtml :call tohtml#Convert2HTML(<line1>, <line2>)
Bram Moolenaar071d4272004-06-13 20:20:40 +000019endif
Bram Moolenaar349b2fb2010-07-16 20:35:36 +020020
21" Make sure any patches will probably use consistent indent
Bram Moolenaar7c86f4c2010-07-18 14:07:22 +020022" vim: ts=8 sw=2 sts=2 noet