PHP Classes

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

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   Laravel Blogging Platform   vendor/jakub-onderka/php-console-highlighter/examples/snippet.php   Download  
File: vendor/jakub-onderka/php-console-highlighter/examples/snippet.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: 4 years ago
Size: 300 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->getCodeSnippet($fileContent, 3);