麻豆小视频在线观看_中文黄色一级片_久久久成人精品_成片免费观看视频大全_午夜精品久久久久久久99热浪潮_成人一区二区三区四区

首頁 > 網(wǎng)站 > 軟件應(yīng)用 > 正文

FCKeditor 和 SyntaxHighlighter 代碼高亮插件的整合

2024-09-06 19:16:44
字體:
供稿:網(wǎng)友

Introduction(簡介)

This is a dialog-based plugin to handle formatting of source code for FCKeditor 2.5.x. It WON'T work with the new CKEditor (yet).(CKEditor 是FCKEditor 的升級版,不過,SyntaxHighlighter 還不能在 CKEditor 中實現(xiàn)代碼高亮) It makes use of the SyntaxHighlighter 2.0.x javascript library available to download from Alex Gorbatchev's project page (the older version 1.5.1 version is available from Google Code).

The plugin primiarily edits a <pre> tag with some custom attributes. Its mainly aimed at users editing blogs or content management systems where there is a requirement to format programming languages on a website that is being edited using FCKEditor.

The plugin will not format the code in FCKEditor - the SyntaxHighlighter javascript library dynamically generates a lot of formatted HTML at runtime, which would cause problems in FCKEditor.

Skip straight to the good bits

Can't be bothered reading all this? View the online demo or download the plugin and go play with it yourself.

So what do I get then?

Correctly installed, the plugin is in the form of a tabbed dialogue box that looks like this:(插件安裝好以后的效果)

Version history:(版本歷史)

Huge thanks goes to Sergey Gurevich who wrote the updated code for the FCKEditor plugin to handle the latest version of the SyntaxHighlighter code and submitted useful bug fixes.

  • v2.1.0 [23 May 2009]
    - Plugin version information now being displayed
    - Line highlighting feature added
    Download | Demo
     
  • v2.0.1 [22 March 2009]
    Minor bug fix where semi-colons were sometimes positioned in the wrong place when no advanced options were selected
    Download
     
  • v2.0 [2 March 2009]
    Latest version supporting SyntaxHighlighter 2.0.x
     
  • v1.0.2 [2 March 2009]
    Bug fixes, final release supporting the older SyntaxHighlighter 1.5.1
    Note the instructions below are for the newer version of the library and makes references to syntaxhighlight2 a lot, this version uses syntaxhighlight. The documentation in the download will be more accurate.
    Download.| Demo
     
  • v1.0.1 [10 Feb 2009].
     
  • v1.0 [30 Nov 2008]. First version.

Known bugs:

Occasionally the dialogue box does not pickup the <pre> element to be edited in Firefox. It only seems to happen when a user clicks inside the <pre> tag with the mouse but doesn't actually move or interact with the cursor.
Fixed in version 1.0.2 - Thanks to Sergey Gurevich

Installation(安裝配置過程)

1. Copying the files(拷貝文件)

Extract the contents of the zip in your plugins directory, so it ends up like this:(基本的目錄結(jié)構(gòu)如下)

Note: Version 2 of the plugin must be extracted to a directory named 'syntaxhighlighter2'. The older plugin for the earlier version of the library must go in a folder named 'syntaxhighlighter'. The file fckplugin.js references this directory when the plugin initialises.(注意這里的命名)

2. Adding it to FCKeditor(將它添加到 FCKeditor)

Now add in your fckconfig.js or custom js configuration file the following line (remember its javascript we are dealing with so everything is case sensitive!): 

1.FCKConfig.Plugins.Add( 'syntaxhighlight2', 'en') ;
發(fā)表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發(fā)表
主站蜘蛛池模板: 精品国产1区2区3区 av视屏 | 亚洲经典视频 | 国产精品99久久久久久宅女 | 麻豆蜜桃在线观看 | 久久亚洲美女视频 | 日日天日日夜日日摸 | aa级黄色片 | 成人在线观看小视频 | 毛片福利 | 天天躁狠狠躁夜躁2020挡不住 | 九草av | 精品国产一区二区三区久久久 | 黄色久 | 欧美日本在线视频 | 日韩av电影在线免费观看 | 在线观看免费毛片视频 | 热99re久久免费视精品频软件 | 一色屋任你操 | 91精品国产乱码久久久久久久久 | 午夜视频久久久 | 国产精品久久久久久久不卡 | 特级黄色影院 | 极品一级片| 在线观看免费污视频 | 国产毛片在线 | 亚洲国产成人久久成人52 | 老女人碰碰在线碰碰视频 | 久久亚洲视频网 | av电影网站在线 | 黄色网址在线免费播放 | av电影免费在线 | 日本一道aⅴ不卡免费播放 久久久久久久高清 | 国产毛片网站 | 国产成人高清成人av片在线看 | 孕妇体内谢精满日本电影 | 欧美日韩爱爱视频 | 亚洲国产精品一 | 亚洲精品wwww | 亚洲国产精品久久久 | 91成人在线免费视频 | 中国杭州少妇xxxx做受 |