bartman's blog

generating html colourized sourcecode

bartman

I wanted to have vim colouring of source files in html format. There is Text::VimColor perl module, but it’s not in Debian.

Vim has a :TOhtml command (see :h syntax). I wrote a tohtml shell script to solve the problem using :TOhtml. And yes, the html was generated with itself.

Tags: