PHPackages                             luminous/luminous - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. luminous/luminous

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

luminous/luminous
=================

A full featured syntax highlighting library.

v0.7.0(13y ago)521.7k5[11 issues](https://github.com/markwatkinson/luminous/issues)2LGPL-2.1PHP

Since Jan 12Pushed 10y ago3 watchersCompare

[ Source](https://github.com/markwatkinson/luminous)[ Packagist](https://packagist.org/packages/luminous/luminous)[ Docs](http://luminous.asgaard.co.uk)[ RSS](/packages/luminous-luminous/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (2)

Luminous - a Syntax Highlighter for PHP
=======================================

[](#luminous---a-syntax-highlighter-for-php)

[![Build Status](https://camo.githubusercontent.com/e265ef44ab5ef7bfb26d3beff70f96f2db52a3e7e9fab159fb00886c81cfee36/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6d61726b7761746b696e736f6e2f6c756d696e6f75732e706e67)](http://travis-ci.org/markwatkinson/luminous)

Luminous is an accurate and style-able syntax highlighter for PHP which supports a bunch of common languages and output to HTML and LaTeX.

If you simply want to use Luminous as a library, **please don't clone this repository**. Or if you do, make sure you delete luminous/tests afterwards. Do not expose luminous/tests on a public machine. It is recommended to get a packaged version from the links below.

\##Links:

- [Luminous PHP syntax highlighter official site](http://luminous.asgaard.co.uk/) - news, latest stable versions, etc
- [Online demo](http://luminous.asgaard.co.uk/index.php/demo)
- [Documentation and help](http://luminous.asgaard.co.uk/index.php/docs/show/index), read this if you get stuck!
- [Supported language list](http://luminous.asgaard.co.uk/assets/luminous/supported.php)
- [Luminous on GitHub](https://github.com/markwatkinson/luminous) - please report problems to the issue tracker here

Installation
============

[](#installation)

Extract your tarball, zip, whatever, into some directory where it's going to be used (i.e. probably your web-server). We'll assume it's called `luminous/'

Alternatively, Composer:
------------------------

[](#alternatively-composer)

Luminous is also available via Packagist as a Composer package:

```
{
        "require": {
                "luminous/luminous": "0.7.*"
        }
}
```

Quick Usage
===========

[](#quick-usage)

First, if you're going to use caching, which you probably are, create a directory called luminous/cache and give it writable permissions (chmod 777 on most servers -- yours may accept a less permissive value). Then include luminous/luminous.php and away you go!

```
