测试代码高亮插件

装了dp_SyntaxHighlighter,这个是FCKeditor的插件,可以实现代码高亮。

以下是测试部分:

php
  1. <?php 
  2. include("editor/fckeditor1.php") ;//这里调用 
  3. $oFCKeditor = new FCKeditor('FormContent') ;//实例化 
  4. $oFCKeditor->BasePath = 'editor/';//这个路径一定要和上面那个引入路径一致,否则会报错:找不到fckeditor.html页面 
  5. //$oFCKeditor->Value = '' ;  
  6. $oFCKeditor->Width = '100%' ; 
  7. $oFCKeditor->Height = '300' ; 
  8. $oFCKeditor->Create() ; 
  9. ?>

测试完毕

声明: 本文采用 BY-NC-SA 协议进行授权. 转载请注明转自: 测试代码高亮插件
  1. No comments yet.
  1. No trackbacks yet.