2017 © Pedro Peláez
 

symfony-bundle syntax-highlight-bundle

Symfony Syntax Highlight Bundle

image

alten/syntax-highlight-bundle

Symfony Syntax Highlight Bundle

  • Tuesday, June 28, 2016
  • by alten
  • Repository
  • 1 Watchers
  • 0 Stars
  • 3 Installations
  • CSS
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

SyntaxHighlightBundle

The package encapsulates into Symfony/composer bundle following Syntax Highlighter, (*1)

SyntaxHighlighter 
version 3.0.83 (July 02 2010)
http://alexgorbatchev.com/SyntaxHighlighter
JavaScript code syntax highlighter.
Copyright 2004-2010 Alex Gorbatchev.

INSTALLATION:

First add the dependency to your composer.json file:, (*2)

"require": {
    ...
    "alten/syntax-highlight-bundle": "dev-master"
},

Then install the bundle with the command:, (*3)

php composer.phar update

Enable the bundle in your application kernel:, (*4)

``` php <?php // app/AppKernel.php, (*5)

public function registerBundles() { $bundles = array( // ... new Alten\SyntaxHighlightBundle\AltenSyntaxHighlightBundle(), ); }, (*6)


Now install assets: php bin/console assets:install [--symlink] ### **USAGE** Add the following lines to your base twig file: ``` html <link type="text/css" rel="stylesheet" href="{{ asset('bundles/altensyntaxhighlight/css/styles/shCoreMidnight.css') }}"/> <link type="text/css" rel="stylesheet" href="{{ asset('bundles/altensyntaxhighlight/css/styles/shThemeMidnight.css') }}"/>

And in a WYSYWIG editor you may switch to raw mode and use a <pre class="brush: cpp"> tag: ``` html, (*7)

#include 

int main() {
    std::cout 

```, (*8)

The Versions

28/06 2016

dev-master

9999999-dev https://github.com/alten/syntax-highlight-bundle

Symfony Syntax Highlight Bundle

  Sources   Download

MIT

The Requires

 

html editor syntax highlight

17/09 2013

2.3.x-dev

2.3.9999999.9999999-dev https://github.com/raindropdevs

Raindrop Symfony Syntax Highlight Bundle

  Sources   Download

MIT

The Requires

 

html editor syntax highlight

25/04 2013

0.9.1beta

0.9.1.0-beta https://github.com/raindropdevs

Raindrop Symfony Syntax Highlight Bundle

  Sources   Download

MIT

The Requires

 

html editor syntax highlight