tempest / highlight
Fast, extensible, server-side code highlighting
Fund package maintenance!
2.26.0
2026-06-07 06:40 UTC
Requires
- php: ^8.4
Requires (Dev)
- assertchris/ellison: ^1.0.2
- friendsofphp/php-cs-fixer: ^3.84
- league/commonmark: ^2.4
- phpbench/phpbench: ^1.4
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^12.0
- symfony/var-dumper: ^6.4|^7.0|^8.0
Suggests
- assertchris/ellison: Allows you to analyse sentence complexity
- league/commonmark: Adds markdown support
This package is auto-updated.
Last update: 2026-06-07 06:41:20 UTC
README
Quickstart
composer require tempest/highlight
Highlight code like this:
$highlighter = new \Tempest\Highlight\Highlighter(); $code = $highlighter->parse($code, 'php');
Continue reading in the docs: https://tempestphp.com/main/packages/highlight.