【问题标题】:CL Editor - Syntax Highlighting - PHPCL 编辑器 - 语法高亮 - PHP
【发布时间】:2014-10-13 15:43:35
【问题描述】:

我想在我的网站中包含 PHP 脚本。我正在使用CL editor 发布内容。谁能帮我在 CL 编辑器中启用语法。

谢谢

【问题讨论】:

  • 看起来 CL 编辑器提供的功能或多或少接近您想要实现的功能。

标签: php syntax-highlighting cleditor


【解决方案1】:

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
                    )); ?>

试试看:)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2010-09-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多