What I do is to convert my ruby(or any) scripts into html using vim,
--------------
ARGV.each do |f|
`vim -f +"syn on" +"colorscheme elflord" +"set number" +"run! syntax/2html.vim" +"wq" +"q" #{f}`
end
--------------
then I print the html through any browser capable to print in color.
so I think vim could help ...
-ronnie
>>>
>>>
>>> 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?
>>
>>
>>
>>
>
> I'm not exactly familiar with the syntax for highlighting in a2ps, but
> I don't think you could use the vim hilighting in conjunction with
> it. If vim marked up the code it would be more likely that a2ps
> would try to print these additional control codes then use them as
> highlighting suggestions. That's my experience with a2ps anyway.
>
> Charles Comstock