Mercurial > hg > isophonics-drupal-site
comparison vendor/jakub-onderka/php-console-highlighter/examples/whole_file.php @ 0:4c8ae668cc8c
Initial import (non-working)
author | Chris Cannam |
---|---|
date | Wed, 29 Nov 2017 16:09:58 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:4c8ae668cc8c |
---|---|
1 <?php | |
2 use JakubOnderka\PhpConsoleColor\ConsoleColor; | |
3 use JakubOnderka\PhpConsoleHighlighter\Highlighter; | |
4 | |
5 require __DIR__ . '/../vendor/autoload.php'; | |
6 | |
7 $highlighter = new Highlighter(new ConsoleColor()); | |
8 | |
9 $fileContent = file_get_contents(__FILE__); | |
10 echo $highlighter->getWholeFile($fileContent); |