pygments/pygments

Syntax highlighter bridge for pygments

Maintainers

Package info

github.com/php-mod/pygments

pkg:composer/pygments/pygments

Statistics

Installs: 230

Dependents: 1

Suggesters: 1

Stars: 0

Open Issues: 0

1.0.0 2014-10-10 10:52 UTC

This package is auto-updated.

Last update: 2026-03-29 00:36:29 UTC


README

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");