PHPackages                             ifdattic/eprism - 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. ifdattic/eprism

ActiveYii-extension[Utility &amp; Helpers](/categories/utility)

ifdattic/eprism
===============

Yii extension which adds Prism syntax highlighter

38CSS

Since Jan 2Pushed 12y ago1 watchersCompare

[ Source](https://github.com/ifdattic/EPrism)[ Packagist](https://packagist.org/packages/ifdattic/eprism)[ RSS](/packages/ifdattic-eprism/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

EPrism
======

[](#eprism)

**EPrism** is an extension for Yii framework. This extension is a wrapper for [Prism](http://prismjs.com) by [Lea Verou](http://lea.verou.me). *Prism* is a lightweight, extensible syntax highlighter, built with modern web standards in mind. This extension adds this great syntax highlighter using a `widget()` method.

Requirements
------------

[](#requirements)

- Yii 1.1 or above (tested on 1.1.14)

Installation
------------

[](#installation)

### Composer

[](#composer)

**EPrism** can be installed using a \[Composer\]\[composer-link\].

Run the following command:

```
php composer.phar require ifdattic/eprism "dev-master"
```

or make sure you have the following code in *composer.json* file:

```
{
    "require": {
        "ifdattic/eprism": "dev-master"
    }
}
```

### Manual installation

[](#manual-installation)

Download the latest version of extension, extract &amp; place it in your project (*extensions* directory or any of your choice). Just make sure to adjust path for loading it.

Usage
-----

[](#usage)

Place the following code inside your view file:

```
