# Installer highlight avec Homebrew, apk, chocolatey, apt, dnf, MacPorts, Nix, pacman, zypper, scoop

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de highlight pour les workflows d'agents IA.

## installation

```sh
sudo av install brew:highlight
```

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install highlight
```

  Preuve: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install highlight
```

  Preuve: MacPorts ports tree: textproc/highlight/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add highlight
```

  Preuve: Alpine Linux edge package indexes: highlight from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install highlight
```

  Preuve: Debian stable package indexes: highlight from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install highlight
```

  Preuve: Fedora Rawhide package metadata: highlight from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#highlight
```

  Preuve: nixpkgs package indexes: highlight from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S highlight
```

  Preuve: Arch Linux sync databases: highlight from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install highlight
```

  Preuve: openSUSE Tumbleweed package metadata: highlight from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install highlight
```

  Preuve: Chocolatey community package catalog: highlight from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='6.928','obs-virtualcam'

- Scoop (92%):

```sh
scoop install main/highlight
```

  Preuve: Scoop official bucket manifest trees: bucket/highlight.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## Faits du paquet

- **Clé du paquet:** brew:highlight
- **Gestionnaire de paquets:** Homebrew
- **Version:** 4.20
- **Résumé source:** Convert source code to formatted text with syntax highlighting
- **Page d'accueil:** <http://andre-simon.de/doku/highlight/en/highlight.php>
- **Dernière mise à jour:** 2026-05-24T11:59:53Z
- **Généré:** 2026-08-03T19:37:03+00:00

## exécutables

- highlight (alias)

## Comportement d'installation

- Bouteille: non disponible

## Version et fraîcheur

- page générée: 2026-08-03
- version du gestionnaire: 4.20
## Historique du projet et usages

highlight, by André Simon, converts source code into syntax-highlighted output for formats such as HTML, XHTML, RTF, ODT, TeX, LaTeX, SVG, BBCode, Pango markup, and terminal color escape sequences.

Its long-running appeal is that language definitions, themes, and plug-ins are data-driven Lua scripts rather than hardcoded syntax tables, making it useful both as a CLI converter and as a document-generation component.

### Historique du projet

The changelog traces the project back to `src2css` 0.1 in April 2002, followed by `highlight` 0.1 in July 2002 and `highlight` 1.0 in August 2002. Early releases added batch conversion, XHTML, RTF, TeX/LaTeX output, and more language definitions.

The 2.x line expanded output formats, language coverage, shared-library targets, filetype mapping, compatibility options for GNU source-highlight, and a rewritten Qt GUI. In 2009, the changelog records a license move from GPLv2 to GPLv3.

The 3.0 beta in June 2010 was a structural change: language definitions, themes, and filetype configuration were converted to Lua scripts, and a plug-in option was added. The 4.x line continued the Lua-script model while adding service-mode, LSP-related improvements, more languages, CMake/Meson work, and C++17 refactoring.

### Historique d'adoption

highlight spread through Unix package managers because it is useful in documentation pipelines, static-site generation, editor/tool integrations, and terminal workflows. The input package map lists Alpine, Homebrew, Chocolatey, Debian/Ubuntu, Fedora, MacPorts, Nix, Arch, Scoop, and openSUSE-style packages.

Official extras also show integration beyond one-off CLI use. The Pandoc example demonstrates using highlight as an external highlighter inside document preprocessing, including importing external source files and inline themes.

### Modes d'utilisation

Common use is `highlight -i main.cpp -o main.cpp.html` for HTML, `highlight < main.cpp > main.cpp.html --syntax cpp` for standard-input workflows, or `highlight -O latex` for TeX/LaTeX output. Batch and recursive options let it process trees of source files.

Users customize behavior through language definitions, themes, plug-ins, file mappings, and output-format flags. The manual documents terminal truecolor and xterm256 output as well as document formats, making the tool relevant both on the command line and in generated artifacts.

### Pourquoi les passionnés de paquets s'y intéressent

highlight is package-nerd material because it is old-school Unix plumbing that still tracks new languages and output targets. It can sit behind manpage/documentation generation, static websites, code samples, and terminal previews without forcing a runtime-heavy web stack.

Its Lua-definition architecture is also useful for downstreams: language and theme behavior can be patched or extended as data files, which fits distribution packaging better than editing core parser code for every syntax tweak.

### Chronologie

- 2002: src2css 0.1 appears, followed by highlight 0.1 and highlight 1.0.
- 2008: 2.6-14 adds GNU source-highlight compatibility options.
- 2009: 2.10 changes the project license from GPLv2 to GPLv3.
- 2010: 3.0 beta converts language definitions, themes, and filetype data to Lua scripts.
- 2021: 4.0 starts the 4.x line.
- 2023: 4.6 adds service-mode support.
- 2026: 4.20 records C++17 refactoring and more language/build-system updates.

### Related projects

- GNU source-highlight is a related converter; highlight explicitly added compatibility options for some of its CLI behavior.
- Artistic Style is bundled or updated through the changelog for source-code reformatting features.
- Pandoc is a documented integration target via highlight's extras, where highlight can provide external code highlighting in document workflows.

### Sources

- Changelog: https://gitlab.com/saalen/highlight/-/blob/master/ChangeLog.adoc
- Language list: https://gitlab.com/saalen/highlight/-/blob/master/README_LANGLIST.adoc
- Manual: http://andre-simon.de/doku/highlight/en/highlight.php
- Pandoc extra: https://gitlab.com/saalen/highlight/-/blob/master/extras/pandoc/README.html
- README: https://gitlab.com/saalen/highlight#readme


## Notes de sécurité

narrow executable package without higher-risk signals.

- **Risque Geiger:** vert / faible
- narrow executable package without higher-risk signals

## Autres enregistrements de gestionnaires de paquets

- Debian apt - highlight - 4.10-1+b2: normalized package name match | Debian stable package indexes: highlight from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Universal source code to formatted text converter | http://www.andre-simon.de
- Debian apt - highlight-common - 4.10-1: normalized package name match | Debian stable package indexes: highlight-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | source code to formatted text converter (architecture independent files) | http://www.andre-simon.de
- Debian apt - libhighlight-perl - 4.10-1+b2: normalized package name match | Debian stable package indexes: libhighlight-perl from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | perl bindings for highlight source code to formatted text converter | http://www.andre-simon.de
- Nix - highlight: normalized package name match | nixpkgs package indexes: highlight from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - highlight - 4.10-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: highlight from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Universal source code to formatted text converter | http://www.andre-simon.de
- Ubuntu apt - highlight-common - 4.10-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: highlight-common from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | source code to formatted text converter (architecture independent files) | http://www.andre-simon.de
- Ubuntu apt - libhighlight-perl - 4.10-1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libhighlight-perl from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | perl bindings for highlight source code to formatted text converter | http://www.andre-simon.de
- apk - highlight - 4.19-r0: normalized package name match | Alpine Linux edge package indexes: highlight from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Fast and flexible source code highlighter | http://www.andre-simon.de/doku/highlight/highlight.html
- apk - highlight-bash-completion - 4.19-r0: normalized package name match | Alpine Linux edge package indexes: highlight-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Bash completions for highlight | http://www.andre-simon.de/doku/highlight/highlight.html
- apk - highlight-doc - 4.19-r0: normalized package name match | Alpine Linux edge package indexes: highlight-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Fast and flexible source code highlighter (documentation) | http://www.andre-simon.de/doku/highlight/highlight.html
- apk - highlight-fish-completion - 4.19-r0: normalized package name match | Alpine Linux edge package indexes: highlight-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Fish completions for highlight | http://www.andre-simon.de/doku/highlight/highlight.html
- apk - highlight-zsh-completion - 4.19-r0: normalized package name match | Alpine Linux edge package indexes: highlight-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Zsh completions for highlight | http://www.andre-simon.de/doku/highlight/highlight.html
- dnf - highlight - 4.20-5.fc45: normalized package name match | Fedora Rawhide package metadata: highlight from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Universal source code to formatted text converter | http://www.andre-simon.de/
- dnf - highlight-gui - 4.20-5.fc45: normalized package name match | Fedora Rawhide package metadata: highlight-gui from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | GUI for the highlight source code formatter | http://www.andre-simon.de/
- pacman - highlight - 4.20-1: normalized package name match | Arch Linux sync databases: highlight from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Fast and flexible source code highlighter - CLI version | http://www.andre-simon.de/doku/highlight/highlight.html
- zypper - highlight - 4.18-1.6: normalized package name match | openSUSE Tumbleweed package metadata: highlight from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Universal Source Code to Formatted Text Converter | http://www.andre-simon.de/


## Combined YAML source

View the package source record on GitHub. [combined/highlight.yml](https://github.com/mxcl/pkgdb/blob/main/combined/highlight.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
