raindrop/syntax-highlight-bundle

Raindrop Symfony Syntax Highlight Bundle

Installs: 145

Dependents: 1

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 2

Open Issues: 0

Language:JavaScript

Type:symfony-bundle

1.3.0 2018-04-17 23:39 UTC

This package is not auto-updated.

Last update: 2024-11-09 14:42:41 UTC


README

#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.

===

INSTALLATION:

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]