macOS
brew install highlightlocal Homebrew formula metadata
sudo port install highlightMacPorts ports tree · textproc/highlight/Portfile · ソース: api.github.com
brew
highlight のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。
インストール
brew install highlightlocal Homebrew formula metadata
sudo port install highlightMacPorts ports tree · textproc/highlight/Portfile · ソース: api.github.com
sudo apk add highlightAlpine Linux edge package indexes · highlight · ソース: dl-cdn.alpinelinux.org
sudo apt install highlightDebian stable package indexes · highlight · ソース: deb.debian.org
sudo dnf install highlightFedora Rawhide package metadata · highlight · ソース: dl.fedoraproject.org
nix profile install nixpkgs#highlightnixpkgs package indexes · highlight · ソース: raw.githubusercontent.com
sudo pacman -S highlightArch Linux sync databases · highlight · ソース: geo.mirror.pkgbuild.com
sudo zypper install highlightopenSUSE Tumbleweed package metadata · highlight · ソース: download.opensuse.org
choco install highlightChocolatey community package catalog · highlight · ソース: community.chocolatey.org
scoop install main/highlightScoop official bucket manifest trees · bucket/highlight.json · ソース: api.github.com
概要
Convert source code to formatted text with syntax highlighting
履歴
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.
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.
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.
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.
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.
セキュリティ状態
narrow executable package without higher-risk signals.
リスク グリーン · 信頼度 低 · appliance
エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。
実行可能ファイル
| コマンド | 種類 | 公開範囲 | メモ |
|---|---|---|---|
highlight | cli | グローバル実行可能ファイル |
鮮度
これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。
http://andre-simon.de/doku/highlight/en/highlight.php
インストールメタデータ
| パッケージキー | brew:highlight |
|---|---|
| バージョン | 4.20 |
| パッケージマネージャ | Homebrew |
| パッケージマネージャページ | https://formulae.brew.sh/formula/highlight |
| ホームページ | http://andre-simon.de/doku/highlight/en/highlight.php |
| リポジトリ | https://gitlab.com/saalen/highlight |
| 上流ドキュメント | http://andre-simon.de/doku/highlight/en/highlight.php |
| ライセンス | GPL-3.0-or-later |
| ソースアーカイブ | https://gitlab.com/saalen/highlight/-/archive/v4.20/highlight-v4.20.tar.gz |
| 最終更新 | 2026-05-24T11:59:53Z |
| Pulse | updated |
| 依存関係 | lua |
| ビルド依存関係 | boost, pkgconf |
| Bottle | 利用可能 (対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定義 |
| サービス | 宣言なし |
レジストリ情報
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | highlight |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
ソースデータベース一致
一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。
highlight 4.10-1+b2
Universal source code to formatted text converter
sudo apt install highlighthighlight-common 4.10-1
source code to formatted text converter (architecture independent files)
sudo apt install highlight-commonlibhighlight-perl 4.10-1+b2
perl bindings for highlight source code to formatted text converter
sudo apt install libhighlight-perlhighlight
nix profile install nixpkgs#highlighthighlight 4.10-1build2
Universal source code to formatted text converter
sudo apt install highlighthighlight-common 4.10-1build2
source code to formatted text converter (architecture independent files)
sudo apt install highlight-commonlibhighlight-perl 4.10-1build2
perl bindings for highlight source code to formatted text converter
sudo apt install libhighlight-perlhighlight 4.19-r0
Fast and flexible source code highlighter
http://www.andre-simon.de/doku/highlight/highlight.html
sudo apk add highlighthighlight-bash-completion 4.19-r0
Bash completions for highlight
http://www.andre-simon.de/doku/highlight/highlight.html
sudo apk add highlight-bash-completionhighlight-doc 4.19-r0
Fast and flexible source code highlighter (documentation)
http://www.andre-simon.de/doku/highlight/highlight.html
sudo apk add highlight-dochighlight-fish-completion 4.19-r0
Fish completions for highlight
http://www.andre-simon.de/doku/highlight/highlight.html
sudo apk add highlight-fish-completionhighlight-zsh-completion 4.19-r0
Zsh completions for highlight
http://www.andre-simon.de/doku/highlight/highlight.html
sudo apk add highlight-zsh-completionhighlight 4.20-4.fc45
Universal source code to formatted text converter
sudo dnf install highlighthighlight-gui 4.20-4.fc45
GUI for the highlight source code formatter
sudo dnf install highlight-guihighlight 4.20-1
Fast and flexible source code highlighter - CLI version
http://www.andre-simon.de/doku/highlight/highlight.html
sudo pacman -S highlighthighlight 4.18-1.4
Universal Source Code to Formatted Text Converter
sudo zypper install highlightソース経路
このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。
View the package source record on GitHub.