Breaking long lines using latex with minted and pygments

minted can’t do that and since I have no idea how this line-breaking feature is implemented in listings there are no plans a the moment to add the feature. Sorry. :-(

My advice: for your situation, switch to listings (or break the lines manually).


There seems to be no option for pygments to provide a line width. I would assume that it doesn't handles such thing by itself. If it can be done then only in its latex format driver.

Note that minted/pygments using fancyvrb to display the text while keeping \ the macro character. Unfortunately fancyvrb can't break lines itself. The listings package can do that, but doesn't support \ as single escape character! :-(

Tags:

Xml

Minted