https://github.com/php-mod/pygments
https://github.com/php-mod/pygments
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/php-mod/pygments
- Owner: php-mod
- Created: 2014-10-10T10:41:22.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-10-17T03:29:28.000Z (over 11 years ago)
- Last Synced: 2024-04-25T23:44:17.824Z (almost 2 years ago)
- Language: PHP
- Size: 141 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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");
```