Minted
minted is a LaTeX package that provides syntax highlighting using the Pygments library. Highlighted source code can be customized using fancyvrb.
Install / Use
/learn @gpoore/MintedREADME
minted — highlighted source code for LaTeX
Overview
minted is a LaTeX package that provides syntax highlighting using the
Pygments library. The package also provides options
for customizing the highlighted source code output, including features
implemented in Python such as selecting snippets of code with regular
expressions.
For example, this LaTeX code
\begin{minted}[mathescape,
linenos,
numbersep=5pt,
gobble=2,
frame=lines,
framesep=2mm]{csharp}
string title = "This is a Unicode π in the sky"
/*
Defined as $\pi=\lim_{n\to\infty}\frac{P_n}{d}$ where $P$ is the perimeter
of an $n$-sided regular polygon circumscribing a
circle of diameter $d$.
*/
const double pi = 3.1415926535
\end{minted}
will produce the following when compiled with LaTeX

See the documentation for examples and installation instructions.
Availability
minted is distributed with both TeX Live and MiKTeX. It is also available
from CTAN.
License
This work may be distributed and/or modified under the conditions of the LaTeX Project Public License (LPPL), version 1.3c or later.
Please use the project's GitHub site at https://github.com/gpoore/minted for suggestions, feature requests, and bug reports.
Related Skills
node-connect
345.9kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
106.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
345.9kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
345.9kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
