custura / highlight
Fast, extensible, server-side code highlighting
Fund package maintenance!
brendt
dev-main
2024-12-15 13:07 UTC
Requires
- php: ^8.2|^8.3|^8.4
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
This package is auto-updated.
Last update: 2025-02-15 13:31:50 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.