The minted package facilitates expressive syntax highlighting in LaTeX using the powerful Pygments library. This does mean that, unlike {listings}, minted requires the installation of additional software. This may seem like a disadvantage but it does mean that whilst {listings} basically only highlights strings, comments and keywords, minted and Pygments, on the other hand, can be completely customized to highlight any token kind the source language might support. This might include special formatting sequences inside strings, numbers, different kinds of identifiers and exotic constructs such as HTML tags.

The package provides options to customise the highlighted source code output using {fancyvrb}.

history | show excerpt | excerpt history