Syntax Highlighting With Minted
Minted (LPPL/BSD licensed) is a LaTeX package that facilitates expressive syntax highlighting using the Pygments library. This highlighter can be used with the LaTeX converter.
To use Minted, set the option ‘syntax_highlighter’ to ‘minted’. Also make sure that you have the ‘minted’ LaTeX package installed!
The Minted syntax highlighter supports the following keys of the option ‘syntax_highlighter_opts’:
- The default language that should be used when no language is set.
- Add line numbers
- Break long lines (needs at least version 2.0 of the ‘minted’ LaTeX package)