CTAN Comprehensive TeX Archive Network

New on CTAN: xlistings

Date: August 18, 2026 1:02:19 PM CEST
Florian Sihler submitted the xlistings package. Version: 1.0.0 2026-08-17 License: lppl1.3c Summary description: Opinionated extensions to the listings package Announcement text:
xlistings is an opinionated extension to the listings package. It provides a simpler front-end for code blocks, language-sensitive highlighting of numbers (hexadecimal literals, exponents, and type suffixes such as 10L in Java or 3j in Python), a drop-in replacement for the minted environment, per-language wrapper macros and environments, non-selectable line numbers based on accsupp, language badges, and definitions for a set of common languages that are loaded on demand. This is the first release on CTAN. Language definitions are installed as xlistings-<language>.cfg. Both \LoadLanguages{<language>} and private, unprefixed <language>.cfg files continue to work unchanged. The package is licensed under the LaTeX Project Public License 1.3c. Sources, issue tracker, and documentation: https://github.com/EagleoutIce/xlistings
The package’s Catalogue entry can be viewed at https://ctan.org/pkg/xlistings The package’s files themselves can be inspected at https://mirrors.ctan.org/macros/latex/contrib/xlistings/
Thanks for the upload. For the CTAN Team Petra Rübe-Pugliese
CTAN is run entirely by volunteers and supported by TeX user groups. Please join a user group or donate to one, see https://ctan.org/lugs

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.

PackageXlistings
Version1.1.0
Copyright2024–2026 Florian Sihler
MaintainerFlorian Sihler

Announcements

more

Guest Book Sitemap Contact Contact Author