views:

759

answers:

6

What is the best Windows program to print out source code (more generally, text files)? I'd like the following features:

  1. Includes line numbers
  2. Option of printing 2 or 4 pages on a single sheet of paper.
  3. Header includes filename and timestamp.
+1  A: 

UltraEdit works pretty well for all three of those.

www.ultraedit.com

IPX Ares
+1  A: 

I use Context for most of my non-Visual Studio development, and it does what you asked for and is free. I don't know how well it does color, but the source code colors print in a couple of varying boldnesses, which makes it pretty readable in black and white.

I just use the printer dialog to set the multi-pages per sheet option.

cori
+4  A: 

Notepad++ is an excellent tool for this (and it's free!). You can print the code out both in normal text, as well as marked-up with colour as you see it on the screen!

Breakthrough
I like Notepad++ (when I'm not using emacs). I don't see the option for printing up marked-up code though or for including page numbers in the printout. Where do I look?
Greg
Settings -> Preferences -> Print - Color and MarginCheck "Print Line Number". Code is printed in colour by default - select a language at the top, and print preview it. :)
Breakthrough
A: 

I'm using Codex: http://www.snapfiles.com/get/codex.html

Works pretty good, can both print and publish (export to HTML).

dengel
A: 

Crimson Editor looks great too!

0A0D
A: 

I tried the suggested Notepad++ and Codex, but I find them too limiting. I could not print two columns per sheet in either one of them. I like to maximize the amount of code per sheet. A decade ago I would use pcps to print multiple columns of source code, but that software is just too old and cumbersome in this day and age. For now, I would suggest this, if you want multi column output: http://www.lerup.com/printfile/

Bram