An open API service indexing awesome lists of open source software.

https://github.com/php-mod/pygments


https://github.com/php-mod/pygments

Last synced: 9 months ago
JSON representation

Awesome Lists containing this project

README

          

Pygments for PHP
================

PHP Server side syntax highlighter based on [Pygments](http://pygments.org/ "") 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

```php

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