There are many questions (and answers) on this site about packages for showing listings of source code. But all the answers I have found are at least five years old, and I was wondering if any newer packages have been developed that are in some way or other superior to the older ones like "listings"?
Ideally, I'd like to have listings with the following characteristics ...
- Typeset in a fixed-width font, preferably a fairly narrow one that doesn't take up too much space.
- Enclosed in a box with a nice border, maybe even with a drop shadow
- A colored background.
- Syntax-driven color coding for languages like C/C++/C#.
- Some control over where page breaks occur, maybe.
Some of these are just icing on the cake that I could live without.
So, any new-and-improved solutions today in 2016? If the answer is "no", that will still be helpful, because it tells me that I can stop looking.
listings
, 2015/06/04;minted
, 2015/09/09;tcolorbox
, 2015/11/27 (viatcblisting
)... All of these have been updated in the last year, let alone the last 5 years. Where do you get your information from?\ttfamily
's default, which will not be determined by the package responsible for formatting the source code (generally) but by your document-wide font configuration.