G. Milde wrote:

> On 15.11.07, Neal Becker wrote:
>> I want to put hyperlinks in my pdf output to syntax highlighted code
>> listings.  I wonder if anyone can recommend a syntax highlighter that:
> 
>> 1) groks c++ and python (at least)
>> 2) outputs pdf
>> 3) Can number lines
> 
> I recommend pygments: http://pygments.org/
> Its a highly configurable, clean, documented Python package producing html
> or latex.
> 
> I do not know about
>> 4) Can wrap long lines
> however.
> 

Pygments was my first choice.  In the end, I don't think I will use it.  It
can generate pdf via latex, but it uses fancyvrb.  AFAICT, this doesn't
allow line wrap, and the code for fancyvrb.sty is (to my eye) some of the
scariest latex code I've seen.


Reply via email to