【发布时间】:2014-10-13 15:43:35
【问题描述】:
我想在我的网站中包含 PHP 脚本。我正在使用CL editor 发布内容。谁能帮我在 CL 编辑器中启用语法。
谢谢
【问题讨论】:
-
看起来 CL 编辑器提供的功能或多或少接近您想要实现的功能。
标签: php syntax-highlighting cleditor
我想在我的网站中包含 PHP 脚本。我正在使用CL editor 发布内容。谁能帮我在 CL 编辑器中启用语法。
谢谢
【问题讨论】:
标签: php syntax-highlighting cleditor
在 protected/extensions/ 中提取 CLEditor 后,这是创建它的脚本:
<?php $this->widget('Application.extensions.cleditor.ECLEditor',array(
'model'=>$model,
'attribute'=>'isi',
'options'=>array(
'width'=>'700',
'height'=>250,
'useCSS'=>true,
),
'value'=>$model->artikel
)); ?>
试试看:)
【讨论】: