MesHighlightBundle is based on scrivo/highlight.php library, a port of highlight.js by Ivan Sagalaev to PHP.
$ composer require carteni/highlight-bundle
<?php
// app/AppKernel.php
// ...
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
// ...
new \Mes\Misc\HighlightBundle\MesHighlightBundle(),
);
// ...
}
// ...
}
$ bin/console assets:install --symlink
mes_highlight:
supported_languages: ["php", "xml", "twig", "javascript", "sql", "json"]
root_path: "%kernel.root_dir%/Resources/"
left_delimiter: "{{"
right_delimiter: "}}"
This bundle is under the MIT license. See the complete license in the bundle
Issues are tracked in the Github issue tracker.
How can I help you explore Laravel packages today?