On Sat, 22 Mar 2003, Walter Cazzola wrote:

> Unfortunately, I'm looking for syntax highlighting and not for
> keywordis/blocks alignment. I want something that automatically prints
> ruby keywords in boldface, comments in italics and so on.
>
> Of course inside LaTeX documents, do you know a script that do that
> without writing it by myself?

vim can export ruby code to html - doing all of the above.  i'm guessing that
there is something which could convert html to latex.

 for f in *.rb; do gvim -f +"syn on" +"run! syntax/2html.vim" +"wq" +"q" $f; done

the results are really nice.


-a

--
  ====================================
  | Ara Howard
  | NOAA Forecast Systems Laboratory
  | Information and Technology Services
  | Data Systems Group
  | R/FST 325 Broadway
  | Boulder, CO 80305-3328
  | Email: ahoward / fsl.noaa.gov
  | Phone:  303-497-7238
  | Fax:    303-497-7259
  ====================================