Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F1432390
README.md
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
README.md
View Options
PHP
Console
Highlighter
=======================
Highlight
PHP
code
in
console
(
terminal
).
Example
-------

Install
-------
Just
run
the
following
command
to
install
it
:
composer
require
--
dev
php
-
parallel
-
lint
/
php
-
console
-
highlighter
:
"0.*"
Usage
-------
```
php
<?
php
use
PHP_Parallel_Lint
\
PhpConsoleColor
\
ConsoleColor
;
use
PHP_Parallel_Lint
\
PhpConsoleHighlighter
\
Highlighter
;
require
__DIR__
.
'
/
vendor
/
autoload
.
php
'
;
$
highlighter
=
new
Highlighter
(
new
ConsoleColor
());
$
fileContent
=
file_get_contents
(
__FILE__
);
echo
$
highlighter
->
getWholeFile
($
fileContent
);
```
------
[](https://packagist.org/packages/php-parallel-lint/php-console-highlighter)
[](https://github.com/php-parallel-lint/PHP-Console-Highlighter/actions/workflows/cs.yml)
[](https://github.com/php-parallel-lint/PHP-Console-Highlighter/actions/workflows/test.yml)
[](https://packagist.org/packages/php-parallel-lint/php-console-highlighter)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, May 16, 21:42 (1 d, 4 h)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
8e/88/fee63f4ec7990ec7fe7d2e1156d9
Default Alt Text
README.md (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment