tempest / highlight
Fast, extensible, server-side code highlighting
Fund package maintenance!
brendt
Installs: 134 269
Dependents: 15
Suggesters: 0
Security: 0
Stars: 649
Watchers: 7
Forks: 38
Open Issues: 12
Requires
- php: ^8.3
Requires (Dev)
- assertchris/ellison: ^1.0.2
- friendsofphp/php-cs-fixer: ^3.21
- league/commonmark: ^2.4
- phpstan/phpstan: ^1.10.0
- phpunit/phpunit: ^10.0
- symfony/var-dumper: ^6.4|^7.0
Suggests
- assertchris/ellison: Allows you to analyse sentence complexity
- league/commonmark: Adds markdown support
- dev-main
- v2.x-dev
- 2.11.2
- 2.11.1
- 2.11.0
- 2.10.6
- 2.10.5
- 2.10.4
- 2.10.3
- 2.10.2
- 2.10.1
- 2.10.0
- 2.9.0
- 2.8.2
- 2.8.1
- 2.8.0
- 2.7.0
- 2.6.1
- 2.6.0
- 2.5.0
- 2.4.5
- 2.4.4
- 2.4.3
- 2.4.2
- 2.4.1
- 2.4.0
- 2.3.5
- 2.3.4
- 2.3.3
- 2.3.2
- 2.3.1
- 2.3.0
- 2.2.0
- 2.1.0
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.3.4
- 1.3.3
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.1
- 1.2.0
- 1.1.0
- 1.0.2
- 1.0.1
- 1.0
- dev-pxp
This package is auto-updated.
Last update: 2024-12-14 09:16:14 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/docs/highlight/01-getting-started.