Hi,

I use Latex with the listings package.

#include the package
\usepackage{listings} =20

#set some nice print options and indicate the file
\lstset{basicstyle=3D\footnotesize,language=3DRuby}
\lstset{linewidth=3D500pt}
\lstset{numbers=3Dleft, stepnumber=3D1}
\lstset{commentstyle=3D\color{blue}, =
stringstyle=3D\color{green},showspaces=3Dfalse}
\lstset{keywordstyle=3D\color{red}\bfseries\emph}
\lstset{frame=3DtrBL,frameround=3Dtttt}
=
\lstinputlisting[caption=3Dchromosome.rb,label=3Dlst:lowertri]{./bin/rn_pr=
actice.rb}

Kind regards,
V.


On Mar 3, 2011, at 5:10 PM, Martin Pirker wrote:

> Hi....
>=20
> I wonder, what are your solutions for pretty printing Ruby code,
> as for printing on real paper, spreading it across a table
> and reviewing it and marking it with handwritten notes etc.
>=20
> Currently I source highlight via enscript and do 4-on-1 like this:
>=20
> cat bla.ruby |
> fold -w 89 |
> enscript -Eruby -c -B -h -p- -fCourier10 --margins=3D15:15:30:30 | =
pstops -pa4
> =
"4:1@.50(0.5cm,0.85cm)+3@.50(10.16cm,0.85cm)+0@.50(0.5cm,14.44cm)+2@.50(10=
.16cm,14.44cm)"
>> output.ps
>=20
>=20
> ..but I guess you have also nice solutions to this problem?
>=20
> Alternative recommendations welcome! :-)
> Martin
>=20