Printing Code

by @jehiah on 2006-08-23 03:57UTC
Filed under: All , Linux , Programming , Windows

I don’t normally print out the code I write because it just turns out horribly on paper, and you need line numbers on code.

That said, I happened across this command string when a co-worker printed out some code, and I’m happy with the results. It’s pretty slick.

[code]
user@host$ nenscript -2Gr -C yourTextFileOfCode.py
[/code]

I’ll leave it to you to figure out what the cryptic options do, but I will include a screen shot of how it prints.


Now enjoy some nice printouts next time you need to run of 30 copies of that page of example code.

Nenscript is an ascii->postscript formatter. Available for windows and linux.

There are plenty of tools to turn postscript files into pdf files if you need that instead of printing

<warning> That horrid html code is my index page… I know I know it’s bad </warning>

Subscribe via RSS ı Email
Jehiah Czebotar