siezi / phile-syntax-highlight
PhileCMS 语法高亮插件
2.2.1
2018-03-23 11:53 UTC
Requires
- geshi/geshi: ^1.0
- phile-cms/phile: ^1.10 || dev-develop
Requires (Dev)
- phpunit/phpunit: ^7.0
README
语法高亮源代码。
1.1 安装(composer)
"require": { "siezi/phile-syntax-highlight": "*" }
1.2 安装(下载)
- 将此插件下载到
plugins/siezi/phileSyntaxHighlight
- 安装并包含 Geshi 1.0.x
2. 激活
安装插件后,您需要激活它。将以下行添加到您的 /config.php
文件中
$config['plugins']['siezi\\phileSyntaxHighlight'] = ['active' => true];
3. 开始
在标准的 Phile 安装中,使用 markdown 带围栏的代码块 并指定一种语言
```php
$foo = bar;
```
4. 配置
请参阅 config.php
。