PHPackages                             nicodmf/highlight-bundle - 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. [Templating &amp; Views](/categories/templating)
4. /
5. nicodmf/highlight-bundle

ActiveSymfony-bundle[Templating &amp; Views](/categories/templating)

nicodmf/highlight-bundle
========================

This bundle transforms a part of text representing a source code in html formated text, providing 5 highlighter: pygment, geshi, highlight, http request to appspot, http request to hiliteme

2.1.x-dev(13y ago)22485[3 issues](https://github.com/nicodmf/HighlightBundle/issues)MITPHPPHP &gt;=5.3.2CI failing

Since May 4Pushed 12y ago2 watchersCompare

[ Source](https://github.com/nicodmf/HighlightBundle)[ Packagist](https://packagist.org/packages/nicodmf/highlight-bundle)[ RSS](/packages/nicodmf-highlight-bundle/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (3)Versions (2)Used By (0)

Presentation
============

[](#presentation)

This bundle transforms a part of text representing a source code in html formated text. It provides 5 highlighters :

- pygment
- geshi
- highlight
- http request to appspot
- http request to hiliteme

Two caches mechanisms permit to conserve highlighted informations about languages and work made by the highlighter, moreover symfony integrated cache.

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

[](#installation)

\###Standard symfony installation :

Add the following line in composer.json:

```
{
//...
   "require":{
      //....
      "nicodmf/highlight-bundle": "2.1.*"
      //...
   }
}
```

Activate changes via the command:

```
php composer.phar update

```

\###Manual installation

Download and decompress the bundle package in `vendor/bundles/Highlight` manually or via github:

```
git submodule add git://github.com/nicodmf/HighlightBundle.git vendor/bundles/Highlight`

```

- add namespace in the autoloader :

```
