1071d4279SBram Moolenaar" Vim plugin for converting a syntax highlighted file to HTML. 2349b2fb0SBram Moolenaar" Maintainer: Ben Fritz <[email protected]> 3*bebca9daSBram Moolenaar" Last Change: 2010 Aug 07 4b02cbe34SBram Moolenaar" 5349b2fb0SBram Moolenaar" The core of the code is in $VIMRUNTIME/autoload/tohtml.vim and 6349b2fb0SBram Moolenaar" $VIMRUNTIME/syntax/2html.vim 78ada2ccaSBram Moolenaar" 88ada2ccaSBram Moolenaar" TODO: 9076e8b2aSBram Moolenaar" * Bug: error thrown when nowrapscan is set 108ada2ccaSBram Moolenaar" * Line number column has one character too few on empty lines 118ada2ccaSBram Moolenaar" without CSS. 128ada2ccaSBram Moolenaar" * Add extra meta info (generation time, etc.) 13*bebca9daSBram Moolenaar" * Tidy up so we can use strict doctype more? 148ada2ccaSBram Moolenaar" * TODO comments for code cleanup scattered throughout 15071d4279SBram Moolenaar 167510fe74SBram Moolenaarif exists('g:loaded_2html_plugin') 177510fe74SBram Moolenaar finish 187510fe74SBram Moolenaarendif 19*bebca9daSBram Moolenaarlet g:loaded_2html_plugin = 'vim7.3_v4' 207510fe74SBram Moolenaar 21b02cbe34SBram Moolenaar" Define the :TOhtml command when: 22b02cbe34SBram Moolenaar" - 'compatible' is not set 23b02cbe34SBram Moolenaar" - this plugin was not already loaded 24b02cbe34SBram Moolenaar" - user commands are available. 25071d4279SBram Moolenaarif !&cp && !exists(":TOhtml") && has("user_commands") 26b02cbe34SBram Moolenaar command -range=% TOhtml :call tohtml#Convert2HTML(<line1>, <line2>) 27071d4279SBram Moolenaarendif 28349b2fb0SBram Moolenaar 29349b2fb0SBram Moolenaar" Make sure any patches will probably use consistent indent 307c86f4ccSBram Moolenaar" vim: ts=8 sw=2 sts=2 noet 31