How to Print Rails Source

Hi all,

Inspired by Mike Schwab, I’d like to read the Rails 3 source code on printed paper (and preferably in color).

For example, xv6 (http://pdos.csail.mit.edu/6.828/2009/xv6-book/index.html) did a nice job printing their code (http://pdos.csail.mit.edu/6.828/2009/src/xv6.pdf). It even has line numbers and an index. The only thing I would like to add is syntax highlighting.

Anyone know how any of this is possible?

We could even add a rake task, print, that generates an up-to-date PDF.

Thanks!

Matt

Yes, lets use more paper. That is a fantastic Idea! The color thing just makes it even better. How about using the blood of oil covered pelicans for red and the skin of dolphins for blue? Can’t quite think of anything for green, but who needs that anyway.

red and the skin of dolphins for blue? Can't quite think of anything for
green, but who needs that anyway.

Green mamba snakes are almost exterminated, so let's finish them off!