#SyntaxHighlightBundle
####This bundle includes Code Mirror js library for textarea code highlighting Documentation and examples are available at Code Mirror Official Website
See a basic usage here and code inclusion here
A twig highlighter mode is into roadmap.
===
First add the dependency to your composer.json
file:
"require": {
...
"raindrop/syntax-highlight-bundle": "dev-master"
},
Then install the bundle with the command:
php composer.phar update
Enable the bundle in your application kernel:
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Raindrop\SyntaxHighlightBundle\RaindropSyntaxHighlightBundle(),
);
}
Now install assets:
php app/console assets:install [--symlink]