carteni/highlight-bundle
Composer 安装命令:
composer require carteni/highlight-bundle
包简介
A port of highlight.js by Ivan Sagalaev to PHP
README 文档
README
MesHighlightBundle is based on scrivo/highlight.php library, a port of highlight.js by Ivan Sagalaev to PHP.
Step 1: Download the Bundle
$ composer require carteni/highlight-bundle
Step 2: Enable the Bundle
<?php // app/AppKernel.php // ... class AppKernel extends Kernel { public function registerBundles() { $bundles = array( // ... new \Mes\Misc\HighlightBundle\MesHighlightBundle(), ); // ... } // ... }
Step 3: Install styles
$ bin/console assets:install --symlink
Step 4: Configure the Bundle (optional)
mes_highlight: supported_languages: ["php", "xml", "twig", "javascript", "sql", "json"] root_path: "%kernel.root_dir%/Resources/" left_delimiter: "{{" right_delimiter: "}}"
Examples
License
This bundle is under the MIT license. See the complete license in the bundle
Reporting an issue
Issues are tracked in the Github issue tracker.
Enjoy!
♥ ☕ m|e|s
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-05-10