[Tex/LaTex] Line length in fancyvrb

line-breakingline-numberingverbatim

What I'm doing: Typsetting source code using pygments.

What is happening: the code typsets fine, but because pygments puts the code into a Verbatim environment, some of the lines are far too long.

What I want to have happen: I want the lines to break at the edge of the column without adding extra lines in the line numbering.

What I've tried: reading the fancyvrb documentation, using BVerbatim and LVerbatim.

Is there a way to either automatically break the lines or insert line breaks without adding line numbers?

Best Answer

The answer to this question--for me--turned out to be: use the listings package instead, it typsets Ruby code and provides line wrap.