sponsor Vim development Vim logo Vim Book Ad

SYN2HTML : Syntax to HTML converter (Python)

 script karma  Rating 8/4, Downloaded by 1035  Comments, bugs, improvements  Vim wiki

created by
Stephen Thorne
 
script type
utility
 
description
Yet Another Version of the 2html.vim script found in the $VIMRUNTIME/syntax directory.

This version is written in python, making it far easier to do things like change the format of HTML created by the script (i.e. putting it in <div> tags instead of <html> tags).

To use this script, your vim must be compiled with +python.
 
install details
Put the script in:
$HOME/.vim/plugin/syn2html.vim
(or your plugin directory on windows)

Type
:python createHTML()
in the buffer you want rendered to HTML, and a new pane will appear containing the source rendered as HTML. It will be given a .html extension (i.e. foo.c will become foo.c.html).
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
syn2html.vim.gz 0.1 2003-05-13 6.0 Stephen Thorne Initial upload
ip used for rating: 3.133.109.30

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github