3 ms·
Pygments (http://pygments.org/ http://pygments.org/) is a Python program that can highlight almost any language, and outputs a bunch of different formats, inclu
by mhartl 16y ago
Pygments (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).