# How to Print Rails Source

**URL:** <https://www.ruby-forum.com/t/how-to-print-rails-source/190418>\
**Category:** Rails\
**Created:** [June 19, 2010, 6:06pm UTC](https://www.ruby-forum.com/t/how-to-print-rails-source/190418 "2010-06-19T18:06:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt\_Di\_Pasquale](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/cab0a1/32.png) [@Matt\_Di\_Pasquale](https://www.ruby-forum.com/u/Matt_Di_Pasquale)\
**Post date:** [June 19, 2010, 6:06pm UTC](https://www.ruby-forum.com/t/how-to-print-rails-source/190418/1 "2010-06-19T18:06:51Z")

</div>

Hi all,

Inspired by Mike S., 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](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](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

---

<div class="post-metadata">

**Author:** ![Matt\_Di\_Pasquale](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/cab0a1/32.png) [@Matt\_Di\_Pasquale](https://www.ruby-forum.com/u/Matt_Di_Pasquale)\
**Post date:** [June 19, 2010, 6:34pm UTC](https://www.ruby-forum.com/t/how-to-print-rails-source/190418/2 "2010-06-19T18:34:22Z")

</div>

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.

On Sat, Jun 19, 2010 at 8:41 PM, Matt Di Pasquale  
\<removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![Matt\_Di\_Pasquale](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/cab0a1/32.png) [@Matt\_Di\_Pasquale](https://www.ruby-forum.com/u/Matt_Di_Pasquale)\
**Post date:** [June 20, 2010, 12:10am UTC](https://www.ruby-forum.com/t/how-to-print-rails-source/190418/3 "2010-06-20T00:10:51Z")

</div>

> 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!
