Highlight PHP code in terminal
This repository is abandoned.
Suggested alternative: https://github.com/php-parallel-lint/PHP-Console-Highlighter
Highlight PHP code in console (terminal).
Just create a
composer.jsonfile and run the
php composer.phar installcommand to install it:
{ "require": { "jakub-onderka/php-console-highlighter": "0.*" } }
require DIR . '/vendor/autoload.php';$highlighter = new Highlighter(new ConsoleColor());
$fileContent = file_get_contents(FILE); echo $highlighter->getWholeFile($fileContent);