简体   繁体   English

CL编辑器-语法突出显示-PHP

[英]CL Editor - Syntax Highlighting - PHP

I want to include PHP scripts in my website. 我想在我的网站中包含PHP脚本。 I am using CL editor to post contents. 我正在使用CL编辑器发布内容。 Can anyone help me to do syntax enabling in the CL editor. 谁能帮助我在CL编辑器中启用语法。

Thanks 谢谢

After you extract CLEditor in protected/extensions/ this is the script to create it: 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
                    )); ?>

Try it :) 试试吧 :)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM