测试代码高亮插件
装了dp_SyntaxHighlighter,这个是FCKeditor的插件,可以实现代码高亮。
以下是测试部分:
- <?php
- include("editor/fckeditor1.php") ;//这里调用
- $oFCKeditor = new FCKeditor('FormContent') ;//实例化
- $oFCKeditor->BasePath = 'editor/';//这个路径一定要和上面那个引入路径一致,否则会报错:找不到fckeditor.html页面
- //$oFCKeditor->Value = '' ;
- $oFCKeditor->Width = '100%' ;
- $oFCKeditor->Height = '300' ;
- $oFCKeditor->Create() ;
- ?>
测试完毕
Comments (0)
Leave a comment
Trackback