PHPackages                             dreadnip/highlighter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. dreadnip/highlighter

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

dreadnip/highlighter
====================

PHP syntax highlighter using tokens

0.0.1(3y ago)04PHPPHP ^8.1

Since Sep 5Pushed 3y ago1 watchersCompare

[ Source](https://github.com/dreadnip/highlighter)[ Packagist](https://packagist.org/packages/dreadnip/highlighter)[ RSS](/packages/dreadnip-highlighter/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

Highlighter
===========

[](#highlighter)

A teeny-tiny PHP syntax highlighter. Uses `PhpToken` to convert PHP code into PHP language tokens, and then renders those tokens as HTML using either the default styles or custom ones you provide.

Usage
-----

[](#usage)

Vegetable.php

```
