juniora / highlight
Fast, extensible, server-side code highlighting
Fund package maintenance!
brendt
2.11.0
2024-08-28 15:27 UTC
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
This package is not auto-updated.
Last update: 2024-12-18 17:04:15 UTC
README
Quickstart
composer require juniora/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.