PHP Classes

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

Recommend this page to a friend!
  Classes of Renato Lucena   PHP Pokemon Script   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: PHP Pokemon Script
Provides an API to manage a database of Pokemons
Author: By
Last change:
Date: 6 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);