webeweb / syntaxhighlighter-bundle
Integrate SyntaxHighlighter with Symfony 2 and more
Installs: 10 438
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: ^5.6|^7.0
- symfony/asset: ^2.7|^3.0|^4.0
- symfony/framework-bundle: ^2.7|^3.0|^4.0
- symfony/translation: ^2.7|^3.0|^4.0
- twig/twig: ^1.0||^2.0
- webeweb/core-bundle: ^2.13
- webeweb/core-library: ^5.0
Requires (Dev)
- doctrine/doctrine-bundle: ^1.0
- doctrine/orm: ^2.2
- phpunit/phpunit: ^5.7|^7.0
- symfony/browser-kit: ^2.7|^3.0|^4.0
- symfony/form: ^2.7|^3.0|^4.0
- symfony/monolog-bundle: ^2.7|^3.0|^4.0
- symfony/security-bundle: ^2.7|^3.0|^4.0
- symfony/templating: ^2.7|^3.0|^4.0
- symfony/twig-bundle: ^2.7|^3.0|^4.0
This package is auto-updated.
Last update: 2019-10-15 16:35:21 UTC
README
Integrate SyntaxHighlighter with Symfony 2 and more.
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
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.
Dry out your SyntaxHighlighter code by writing it all in PHP !
Includes:
Compatibility
Installation
Open a command console, enter your project directory and execute the following command to download the latest stable version of this package:
$ composer require webeweb/syntaxhighlighter-bundle
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Then, enable the bundle by adding it to the list of registered bundles
in the app/AppKernel.php
file of your project:
public function registerBundles() { $bundles = [ // ... new WBW\Bundle\CoreBundle\WBWCoreBundle(), new WBW\Bundle\SyntaxHighlighterBundle\WBWSyntaxHighlighterBundle(), ]; // ... return $bundles; }
Once the bundle is added then do:
$ php bin/console wbw:core:unzip-assets $ php bin/console assets:install
Usage
Read the documentation.
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:
$ git clone https://github.com/webeweb/syntaxhighlighter-bundle.git
$ cd syntaxhighlighter-bundle
$ composer install
Once all required libraries are installed then do:
$ vendor/bin/phpunit
License
syntaxhighlighter-bundle
is released under the MIT License. See the bundled
LICENSE file for details.