NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist, #2023 most downloaded on Packagist
Fast, extensible, server-side code highlighting
Latest stable
2.30.0
Last release 26 days ago
27 Oct 2026
Ships fairly regularly
a new release about every 3 weeks
Nearly every release is documented
notes for 59 of the last 60 stable releases
Nothing withdrawn
no release was ever pulled
3 years old
82 releases · first in 2024
Drag across the ruler to compare, or tap a release to open it.
Full Changelog: https://github.com/tempestphp/highlight/compare/2.3.1...2.3.2
Full Changelog: https://github.com/tempestphp/highlight/compare/2.3.1...2.3.2
Full Changelog: https://github.com/tempestphp/highlight/compare/2.3.0...2.3.1
Full Changelog: https://github.com/tempestphp/highlight/compare/2.3.0...2.3.1
feat: add Commonmark HighlightExtension by @kbond in https://github.com/tempestphp/highlight/pull/102
HighlightExtension by @kbond in https://github.com/tempestphp/highlight/pull/102Full Changelog: https://github.com/tempestphp/highlight/compare/2.2.0...2.3.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Highlighter :: added getter for supported languages by @atakde in https://github.com/tempestphp/highlight/pull/105
Full Changelog: https://github.com/tempestphp/highlight/compare/2.1.0...2.2.0
Add diff as a language. by @timvandijck in https://github.com/tempestphp/highlight/pull/111
Full Changelog: https://github.com/tempestphp/highlight/compare/2.0.4...2.1.0
Full Changelog: https://github.com/tempestphp/highlight/compare/2.0.3...2.0.4
Full Changelog: https://github.com/tempestphp/highlight/compare/2.0.3...2.0.4
Full Changelog: https://github.com/tempestphp/highlight/compare/2.0.2...2.0.3
Full Changelog: https://github.com/tempestphp/highlight/compare/2.0.2...2.0.3
Full Changelog: https://github.com/tempestphp/highlight/compare/2.0.1...2.0.2
Full Changelog: https://github.com/tempestphp/highlight/compare/2.0.1...2.0.2
Full Changelog: https://github.com/tempestphp/highlight/compare/2.0.0...2.0.1
Full Changelog: https://github.com/tempestphp/highlight/compare/2.0.0...2.0.1
Language interface has two new methods: getName and getAliases
Language interface has two new methods: getName and getAliasesinterface Language
{
+ public function getName(): string;
+ public function getAliases(): array;
…
}
BaseLanguage is now abstractHighlighter::setLanguage is renamed to Highlighter::addLanguage and its signature was changed:- public function setLanguage(string $name, Language $language): self
+ public function addLanguage(Language $language): self
TextLanguagewas addedWithPre to WebThemedata-lang now also works for InlineTheme- interface WithPre
+ interface WebTheme extends Theme
WebTheme method signatures:- public function preBefore(): string;
- public function preAfter(): string;
+ public function preBefore(Highlighter $highlighter): string;
+ public function preAfter(Highlighter $highlighter): string;
src/Themes to src/Themes/CssParsedInjection. If you happen to have custom injections that return strings, then those strings can simply be wrapped within a ParsedInjection: return new ParsedInjection($content).interface Injection
{
- public function parse(string $content, Highlighter $highlighter): string|ParsedInjection;
+ public function parse(string $content, Highlighter $highlighter): ParsedInjection;
}
Pattern::getTokenType() changed from TokenTypeEnum to TokenTypeinterface Pattern
{
- public function getTokenType(): TokenTypeEnum;
+ public function getTokenType(): TokenType;
}
Highlighter::withGutter() is now an immutable functionFull Changelog: https://github.com/tempestphp/highlight/compare/1.3.4...1.3.5
Full Changelog: https://github.com/tempestphp/highlight/compare/1.3.4...1.3.5
Full Changelog: https://github.com/tempestphp/highlight/compare/1.3.3...1.3.4
Full Changelog: https://github.com/tempestphp/highlight/compare/1.3.3...1.3.4
- Fix bug with FQCN and ::class
::classFix bug where two or more style tags within the same HTML file caused an error
style tags within the same HTML file caused an errorFixed commonmark error when no language specified by @alexgarrettsmith in https://github.com/tempestphp/highlight/pull/95
Adds data-lang attribute for CommonMark code block renderer by @alexgarrettsmith in https://github.com/tempestphp/highlight/pull/90
Nothing published for this version
Add prebuilt VSCode themes by @geisi in https://github.com/tempestphp/highlight/pull/87
InlineTheme supportUPGRADING: https://github.com/tempestphp/highlight/blob/main/UPGRADING.md
Add support for ```javascript by @benjamincrozat in https://github.com/tempestphp/highlight/pull/79
UPGRADING: https://github.com/tempestphp/highlight/blob/main/UPGRADING.md
- Improved CSS selector patterns
Nothing published for this version
Nothing published for this version
One column per month.