[WordPress] 外掛分享: WordPress Rainbow Hilite

首頁外掛目錄 › WordPress Rainbow Hilite
⚠ 此外掛已下架 — 不再更新維護,建議勿安裝。
10+
安裝啟用
★★★★★
5/5 分(5 則評價)
2200 天前
最後更新
問題解決
WordPress 3.8+ PHP 5.3.0+ v2.0.5 上架:2014-08-11

內容簡介

「WordPress Rainbow Hilite」已不再維護。如果您有意接手此外掛,請在 [github issues](https://github.com/mcguffin/wp-rainbow-hilite/issues) 留言通知。

如果您需要使用代碼語法突顯,請參考這裡的文件。

功能:

突顯的代碼可以直接從網站複製貼上。無需「查看原始檔案」按鈕。
簡便易用的 TinyMCE 整合。
支援多種程式語言。

附帶rainbow.js,一個由Craig Campbell編寫的語法突顯腳本。
使用rainbow.linenumbers進行行號編號,由Ron Valstar開發。

目前由 Rainbow 支援的語言有:

C
C#
Coffeescript
CSS
D
Go
Haskell
HTML
Java
Javascript
Lua
PHP
Python
R
Ruby
Scheme
Shell
Smalltalk

此外掛實作了一些 Hooks,允許您載入自己的語法模組。詳情參見這裡。

最新檔案可在 GitHub 取得。

外掛 API

此外掛提供了一些篩選功能,以讓佈景主題和其他外掛插入。

詳情請見GitHub-Repo。

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.0.5) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「WordPress Rainbow Hilite」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

“WordPress Rainbow Hilite” is no longer maintained. If you are interested in taking over the plugin, please leave a notice in the [github issues](https://github.com/mcguffin/wp-rainbow-hilite/issues).
If you like to use
Code syntax Highlighting. Documentation can be found here.
Features:

Highlighted code can be copy-pasted directly out of the site. No “view raw” button needed.
User friendly TinyMCE integration.
Many programming languages supported.

Includes rainbow.js a syntax highlighting script written by Craig Campbell.
Line numbering through rainbow.linenumbers by Ron Valstar.
Currently supported languages by Rainbow are

C
C#
Coffeescript
CSS
D
Go
Haskell
HTML
Java
Javascript
Lua
PHP
Python
R
Ruby
Scheme
Shell
Smalltalk

There are some Hooks implemented allowing you to load your own language modules. Details here.
Latest files on GitHub.
Plugin API
The plugin offers some filters to allow themes and other plugins to hook in.
See GitHub-Repo for details.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon