tempestphp / highlight

🎨 Fast, extensible, server-side code highlighting for web and terminal
https://tempest.stitcher.io/highlight/01-getting-started
MIT License
645 stars 39 forks source link
code highlight php

Fast, extensible, server-side code highlighting

Coverage Status

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.