Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 441 Bytes

README.md

File metadata and controls

21 lines (14 loc) · 441 Bytes

Pygments for PHP

PHP Server side syntax highlighter based on Pygments highlighter software.

Installation:

To use this plugin you need pygments in your server:

sudo apt-get python-pygments

That's all. Now you can download the plugin via Composer or as independent library and use it.

Usage

$code = file_get_contents("test.js");
echo Pygmentize::format($code, "js");