4 ms·
Actually, I could really use a program to print highlighted code in an optimized way for code review. But I couldn't find a good one that sufficed for my needs
by Sujan 16y ago
Actually, I could really use a program to print highlighted code in an optimized way for code review. But I couldn't find a good one that sufficed for my needs (Windows, GUI).
- martincmartin 16y agoI use enscript for that.
- zeugma 16y agoCan't you print from your editor ? (Emacs can) Then you get your highlight setup. For more fine-grain control on the output, there is some LaTeX package that can highlight code.
- mhartl 16y agoPygments (http://pygments.org/ http://pygments.org/) is a Python program that can highlight almost any language, and outputs a bunch of different formats, including HTML and LaTeX. You can see an example of the results at http://www.railstutorial.org/book http://www.railstutorial.org/book (HTML) and http://www.railstutorial.org/downloads/pdf?version=2.3.8 http://www.railstutorial.org/downloads/pdf?version=2.3.8 (PDF via LaTeX).