Well like the title says I am asking if there is an alternative to the listings package. With more programming language definitions and the likes, and updated definitions for the current languages.
Asked
Active
Viewed 4,949 times
13
Tiago Veloso
- 4,599
2 Answers
12
Try the minted package. It uses the external Pygments python syntax highlighter and is therefore quite powerful. You need to use the -shell-escape option to allow it to call the required external executables.
neic
- 379
- 2
- 13
Martin Scharrer
- 262,582
5
And there are GNU Source-highlight:
http://www.gnu.org/software/src-highlite/
and hightlight:
http://www.andre-simon.de/
They can export LaTeX code.
PS.
In ConTeXt, there is a t-vim module, which calls VIM to highlighting the program code.
Leo Liu
- 77,365
Pygments. The author of themintedpackage should include that in some future version. However, the project web site states that the package is currently not really maintained. – Martin Scharrer Feb 23 '11 at 09:41t-vim(ConTeXt module), I cache the results by creating an md5 hash of each file, and calling the formatter only if the file has changed. So, subsequent runs are relatively fast. The functionality is actually part of themtxrun(the lua script that runs ConTeXt), andt-vimonly provides an interface to that. – Aditya Feb 23 '11 at 22:01