Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gpoore/minted
minted is a LaTeX package that provides syntax highlighting using the Pygments library. Highlighted source code can be customized using fancyvrb.
https://github.com/gpoore/minted
Last synced: about 2 months ago
JSON representation
minted is a LaTeX package that provides syntax highlighting using the Pygments library. Highlighted source code can be customized using fancyvrb.
- Host: GitHub
- URL: https://github.com/gpoore/minted
- Owner: gpoore
- Created: 2013-04-08T17:12:03.000Z (almost 12 years ago)
- Default Branch: main
- Last Pushed: 2024-10-30T01:59:21.000Z (3 months ago)
- Last Synced: 2024-10-30T03:55:24.550Z (3 months ago)
- Language: TeX
- Homepage:
- Size: 9.08 MB
- Stars: 1,749
- Watchers: 20
- Forks: 126
- Open Issues: 47
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-starred - minted - minted is a LaTeX package that provides syntax highlighting using the Pygments library. Highlighted source code can be customized using fancyvrb. (TeX)
README
# `minted` — highlighted source code for LaTeX
## Overview
`minted` is a LaTeX package that provides syntax highlighting using the
[Pygments](https://pygments.org/) 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
```latex
\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
![screenshot](https://raw.githubusercontent.com/gpoore/minted/main/readme_example.png)
See the [documentation](https://github.com/gpoore/minted/blob/main/latex/minted/minted.pdf)
for examples and installation instructions.## Availability
`minted` is distributed with both TeX Live and MiKTeX. It is also available
from [CTAN](https://www.ctan.org/pkg/minted).## License
This work may be distributed and/or modified under the conditions of the
[LaTeX Project Public License](https://www.latex-project.org/lppl.txt) (LPPL),
version 1.3c or later.Please use the project's GitHub site at
for suggestions, feature requests, and bug reports.