Highlight
Fast, extensible, server-side code highlighting for web and terminal
Install / Use
/learn @tempestphp/HighlightREADME
Fast, extensible, server-side code highlighting
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.
