From: Vicente Bosch Campos Date: 2011-03-22T04:54:59+09:00 Subject: Re: pretty printing Ruby code Hi, I use Latex with the listings package. #include the package \usepackage{listings} #set some nice print options and indicate the file \lstset{basicstyle=\footnotesize,language=Ruby} \lstset{linewidth=500pt} \lstset{numbers=left, stepnumber=1} \lstset{commentstyle=\color{blue}, stringstyle=\color{green},showspaces=false} \lstset{keywordstyle=\color{red}\bfseries\emph} \lstset{frame=trBL,frameround=tttt} \lstinputlisting[caption=chromosome.rb,label=lst:lowertri]{./bin/rn_practice.rb} Kind regards, V. On Mar 3, 2011, at 5:10 PM, Martin Pirker wrote: > Hi.... > > 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. > > Currently I source highlight via enscript and do 4-on-1 like this: > > cat bla.ruby | > fold -w 89 | > enscript -Eruby -c -B -h -p- -fCourier10 --margins=15: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 > > > ..but I guess you have also nice solutions to this problem? > > Alternative recommendations welcome! :-) > Martin >