blob: 3a6ae457b67db96e172c4ff3295f72817171d2d3 [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>
3" Last Change: 2010 Jul 15
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 Moolenaarb02cbe32010-07-11 22:38:52 +02008" Define the :TOhtml command when:
9" - 'compatible' is not set
10" - this plugin was not already loaded
11" - user commands are available.
Bram Moolenaar071d4272004-06-13 20:20:40 +000012if !&cp && !exists(":TOhtml") && has("user_commands")
Bram Moolenaarb02cbe32010-07-11 22:38:52 +020013 command -range=% TOhtml :call tohtml#Convert2HTML(<line1>, <line2>)
Bram Moolenaar071d4272004-06-13 20:20:40 +000014endif
Bram Moolenaar349b2fb2010-07-16 20:35:36 +020015
16" Make sure any patches will probably use consistent indent
17" vim: ts=2 sw=2 sts=2 et