sponsor Vim development Vim logo Vim Book Ad

advanced Tip #621: Vim as a syntax highlighting engine for web publishing

 tip karma   Rating 15/10, Viewed by 1655 

created:   December 15, 2003 13:18      complexity:   advanced
author:   Giuseppe Maxia      as of Vim:   5.7

Geoff Richards has written a Perl module to turn Vim into a highlighting
engine for the web.
Text::VimColor (http://search.cpan.org/perldoc?Text::VimColor).

See some basic usage at http://www.perlmonks.org/index.pl?node_id=314528
where I also show a caching module to improve Text::VimColor performance.

Enjoy

gmax

 rate this tip  Life Changing Helpful Unfulfilling 

<<getting to know the function prototypes | Deleting a buffer without changing your window layout >>

Additional Notes

mmr at b1n.org, February 5, 2004 11:09
within any file type (that has its own syntax highlight) use

:runtime syntax/2html.vim

ta-da!
you got an html version.
vim at snert.demon.co.uk, May 24, 2004 5:13
Now this:

:runtime syntax/2html.vim

is fantastic. Thanks very much :)


Lee
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 [email protected] after searching the archive. Help Bram help Uganda.
Sponsored by Web Concept Group Inc. SourceForge Logo