2017 © Pedro Peláez
 

symfony-bundle syntaxhighlighter-bundle

Integrate SyntaxHighlighter with Symfony 2

image

webeweb/syntaxhighlighter-bundle

Integrate SyntaxHighlighter with Symfony 2

  • Tuesday, July 31, 2018
  • by webeweb
  • Repository
  • 1 Watchers
  • 1 Stars
  • 1,493 Installations
  • CSS
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 324 % Grown

The README.md

syntaxhighlighter-bundle

Build Status Coverage Status Scrutinizer Code Quality Latest Stable Version Latest Unstable Version License composer.lock, (*1)

Integrate SyntaxHighlighter with Symfony 2 and more., (*2)

IMPORTANT NOTICE: This package is no longer maintained and its classes have been migrated into package "core-bundle" (available into version up to 2.15.0 and more) Core bundle, (*3)

syntaxhighlighter-bundle eases the use of SyntaxHighlighter to highlight syntax in your Symfony application by providing Twig extensions and PHP objects to do the heavy lifting. The bundle include the excellent JS library SyntaxHighlighter., (*4)

Dry out your SyntaxHighlighter code by writing it all in PHP !, (*5)

Includes:, (*6)


Compatibility

PHP Symfony, (*7)


Installation

Open a command console, enter your project directory and execute the following command to download the latest stable version of this package:, (*8)

$ composer require webeweb/syntaxhighlighter-bundle

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation., (*9)

Then, enable the bundle by adding it to the list of registered bundles in the app/AppKernel.php file of your project:, (*10)

    public function registerBundles() {
        $bundles = [
            // ...
            new WBW\Bundle\CoreBundle\WBWCoreBundle(),
            new WBW\Bundle\SyntaxHighlighterBundle\WBWSyntaxHighlighterBundle(),
        ];

        // ...

        return $bundles;
    }

Once the bundle is added then do:, (*11)

$ php bin/console wbw:core:unzip-assets
$ php bin/console assets:install

Usage

Read the documentation., (*12)


Testing

To test the package, is better to clone this repository on your computer. Open a command console and execute the following commands to download the latest stable version of this package:, (*13)

$ git clone https://github.com/webeweb/syntaxhighlighter-bundle.git
$ cd syntaxhighlighter-bundle
$ composer install

Once all required libraries are installed then do:, (*14)

$ vendor/bin/phpunit

License

syntaxhighlighter-bundle is released under the MIT License. See the bundled LICENSE file for details., (*15)

The Versions

31/07 2018

dev-master

9999999-dev http://github.com/webeweb/syntaxhighlighter-bundle

Integrate SyntaxHighlighter with Symfony 2

  Sources   Download

LGPL-3.0 LGPL-3.0-only

The Requires

 

The Development Requires

bundle symfony syntaxhighlighter webeweb

31/07 2018

v1.0.2

1.0.2.0 http://github.com/webeweb/syntaxhighlighter-bundle

Integrate SyntaxHighlighter with Symfony 2

  Sources   Download

LGPL-3.0-only

The Requires

 

The Development Requires

bundle symfony syntaxhighlighter webeweb

12/07 2018

v1.0.1

1.0.1.0 http://github.com/webeweb/syntaxhighlighter-bundle

Integrate SyntaxHighlighter with Symfony 2

  Sources   Download

LGPL-3.0-only

The Requires

 

The Development Requires

bundle symfony syntaxhighlighter webeweb

23/06 2018

v1.0.0

1.0.0.0 http://github.com/webeweb/syntaxhighlighter-bundle

Integrate SyntaxHighlighter with Symfony 2

  Sources   Download

LGPL-3.0-only

The Requires

 

The Development Requires

bundle symfony syntaxhighlighter webeweb