What is the best Windows program to print out source code (more generally, text files)? I'd like the following features:
- Includes line numbers
- Option of printing 2 or 4 pages on a single sheet of paper.
- Header includes filename and timestamp.
What is the best Windows program to print out source code (more generally, text files)? I'd like the following features:
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.
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!
I'm using Codex: http://www.snapfiles.com/get/codex.html
Works pretty good, can both print and publish (export to HTML).
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/