dev-master
9999999-devPHP Syntax Highlighter
MIT
The Requires
- php ^7.0
- nikic/php-parser ^2.1
The Development Requires
v0.1.0
0.1.0.0PHP Syntax Highlighter
MIT
The Requires
- php ^7.0
- nikic/php-parser ^2.1
The Development Requires
Wallogit.com
2017 © Pedro Peláez
PHP Syntax Highlighter
A (PHP) syntax highlighter written in PHP., (*1)
<?php
$hl = new Kelunik\Highlight\Highlighter(new HtmlFormatter("php"));
// <optional>
$hl->addPreProcessor(new Your\Custom\PreProcessor);
$hl->addPostProcessor(new Your\Custom\PostProcessor);
// </optional>
print $hl->highlight("<?php print 'Hello World';");
CLI, (*2)
These CLI scripts should give you some hints on how to use the API., (*3)
bin/highlight /path/to/file.php
bin/highlight-html /path/to/file.php > out.html
Supported Languages, (*4)
Currently, only PHP is supported. But you could just add another Lexer., (*5)
PHP Syntax Highlighter
MIT
PHP Syntax Highlighter
MIT