From: "Ara.T.Howard" Date: 2003-09-25T15:21:03+09:00 Subject: Re: formatting ruby code in html On Thu, 25 Sep 2003, paul vudmaska wrote: > Is there a similar function in Ruby to the > highlight_file function of php...this function takes a > file and outputs it in html.... > > http://us2.php.net/manual/en/function.highlight-file.php for f in *.[rb]; do gvim -f +"syn on" +"run! syntax/2html.vim" +"wq" +"q" $f; done vim is great. -a ==================================== | Ara Howard | NOAA Forecast Systems Laboratory | Information and Technology Services | Data Systems Group | R/FST 325 Broadway | Boulder, CO 80305-3328 | Email: ara.t.howard@noaa.gov | Phone: 303-497-7238 | Fax: 303-497-7259 | The difference between art and science is that science is what we understand | well enough to explain to a computer. Art is everything else. | -- Donald Knuth, "Discover" | ~ > /bin/sh -c 'for lang in ruby perl; do $lang -e "print \"\x3a\x2d\x29\x0a\""; done' ====================================