adhocore/cli-syntax
Installation
composer require adhocore/cli-syntax
Usage
use Ahc\CliSyntax\Highlighter;
// PHP code
echo new Highlighter('<?php echo "Hello world!";');
// OR
echo (new Highlighter)->highlight('<?php echo "Hello world!";');
// PHP file
echo Highlighter::for('/path/to/file.php');
See example. Here's the screenshot too:
Contributing
Please check the guide.
LICENSE
© MIT | 2019, Jitendra Adhikari
Credits
This project is bootstrapped by phint and releases managed by please.