From: "Bermejo, Rodrigo" Date: 2004-02-13T08:40:36+09:00 Subject: Re: XML/HTML display code for Ruby 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