From: Simon Strandgaard Date: 2004-02-12T22:14:57+09:00 Subject: Re: XML/HTML display code for Ruby On Wed, 11 Feb 2004 23:14:00 +0100, Simon Strandgaard wrote: > On Wed, 11 Feb 2004 16:03:37 -0600, Charles Comstock wrote: [snip] >> On another, similar note, what pretty print to printer packages exist >> that do syntax highlighting of ruby? I gather enscript should have a >> module for it, not quite sure how to use that, I'm used to using a2ps, >> and haven't notice a highlighter for that thus far. Suggestions? > > IIRC enscript cannot (yet) color Ruby code.. thats what rubyforge is using > in viewcvs. However VIM can hilight Ruby code.. and maybe be used in > conjunction with a2ps? [snip] If you have VIM you can convert your ruby file to html. vim -f +"syn on" +"run! syntax/2html.vim" +"wq" +"q" filename.rb And it produces a 'filename.rb.html' file as output. -- Simon Strandgaard