Xlistings – Opinionated extensions to the listings package
This package extends listings with an easier front-end for code blocks: language-sensitive highlighting of numbers (including hexadecimal literals, exponents and type suffixes), a drop-in minted environment, per-language wrapper macros and environments, non-selectable line numbers based on accsupp, language badges, and opinionated definitions for a set of common languages that are loaded on demand.
The bundle also contains code-link, which collects definitions while a document is typeset and links every occurrence of them in listings, xlistings and minted blocks. It works without xlistings as well.
| Sources | /macros/latex/contrib/xlistings |
| Documentation | |
| Support | |
| Bug tracker | |
| Repository | |
| Version | 1.1.0 |
| Licenses | The LaTeX Project Public License 1.3c |
| Copyright | 2024–2026 Florian Sihler |
| Maintainer | Florian Sihler |
| Contained in | TeX Live as xlistings MiKTeX as xlistings |
| Topics | Verbatim Listing Syntax highlight |
Download the contents of this package in one zip archive (565.8k).
Announcements
Suggestions
Maybe you are interested in the following packages as well.
Community Comments