PHP Classes

File: vendor/jakub-onderka/php-console-highlighter/examples/whole_file_line_numbers.php

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   Laravel Blogging Platform   vendor/jakub-onderka/php-console-highlighter/examples/whole_file_line_numbers.php   Download  
File: vendor/jakub-onderka/php-console-highlighter/examples/whole_file_line_numbers.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Laravel Blogging Platform
Manage blog posts using Laravel and Bootstrap
Author: By
Last change:
Date: 5 years ago
Size: 310 bytes
 

Contents

Class file image Download
<?php
use JakubOnderka\PhpConsoleColor\ConsoleColor;
use
JakubOnderka\PhpConsoleHighlighter\Highlighter;

require
__DIR__ . '/../vendor/autoload.php';

$highlighter = new Highlighter(new ConsoleColor());

$fileContent = file_get_contents(__FILE__);
echo
$highlighter->getWholeFileWithLineNumbers($fileContent);