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

首頁 > 開發(fā) > 綜合 > 正文

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

2024-07-21 02:53:46
字體:
來源:轉載
供稿:網友
FCKeditor 和 SyntaxHighlighter 代碼高亮插件的整合方法,里面有下載,可以根據需要結合自己的fckeditor版本。
 

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 中實現代碼高亮) 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:(插件安裝好以后的效果)

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

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:(基本的目錄結構如下)

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

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ā)表
主站蜘蛛池模板: 特片网久久 | 911视频免费版 | 国产精品一区二区三区在线 | 毛片视频网站在线观看 | 欧美日本在线视频 | 一级黄色免费 | 亚洲日韩精品欧美一区二区 | 成人偷拍片视频在线观看 | 黄污网址| 九九热在线视频观看 | 精品无吗乱吗av国产爱色 | 欧美一级电影网站 | aaaaa国产欧美一区二区 | 国产电影av在线 | 免费看成年人视频在线 | 青青草免费观看 | 男女污视频在线观看 | 毛片a片| 亚洲综合色视频在线观看 | 午夜小视频免费观看 | 久久亚洲国产精品 | 性欧美一区 | 久久精品一区二区三区四区五区 | 久久久久久久一区二区三区 | 欧美成人免费香蕉 | 中文字幕亚洲一区二区三区 | 天天草夜夜爽 | 免费一区区三区四区 | 国产亚洲精品视频中文字幕 | 天天黄色片 | 91成人免费看 | 国产精品一区视频 | 色中色激情影院 | 国产精品一区二av18款 | 国产精品自在线拍 | 特大黑人videos与另类娇小 | 港台三级在线观看 | 久久精品国产99久久久古代 | 一区二区三区在线播放视频 | 午夜精品在线视频 | 久久综合婷婷香五月 |