using c#

发布asp.net FCKeditor 语法高亮插件

09-10-27 01:54   View:360

语法高亮的插件已经使用一段时间了,感觉没什么大问题。现在也有网友问我什么时候可以下载,今天有点空,就把它打包放上来了。

使用方法:
1、在您的FCKeditor的配置文件中(一般为fckconfig.js或custom.config.js)
配置其中的FCKConfig.ToolbarSets,添加HighLighter。
如:
    FCKConfig.ToolbarSets["review"] = [
        ['HighLighter','Bold','Italic','Underline','StrikeThrough','Link','Unlink','Image','Rule','Smiley','TextColor','BGColor']
    ];
当然,你可以放到别的工具栏,不过记得注意大小写。
 
2、根据你指定的plugin目录,注册plugin
如:
    // 代码语法高亮插件
    FCKConfig.Plugins.Add( 'highlighter', 'zh-cn,en' ) ;

3、OK,你会发现你的FCK工具栏的图片多了一个带有"ab"字母,黄底的图标。你就可以使用语法高亮显示功能了。

下载地址:http://myvnet.com/attachments/month_0804/72008410182713.rar

转载:http://myvnet.com/article.asp?id=49

非常感谢,作者,我已经在新版的BLOG中集成了。正在开发中。

Feedback


  • No comments posted yet.
Title:
 
Name:
 
URL:

Comments:
 

Because of the cache,you may see your comments several minutes later.


Main Feeds

Contact Me Privacy

All Rights Reservered CnKker.Com 2006~2009 Powder By 龍天昌盛 QQ:256051