[WordPress] 外掛分享: WP SyntaxHighlighter

首頁外掛目錄 › WP SyntaxHighlighter
WordPress 外掛 WP SyntaxHighlighter 的封面圖片
300+
安裝啟用
★★★★★
5/5 分(1 則評價)
5132 天前
最後更新
問題解決
WordPress 2.8+ v1.7.3 上架:2011-05-01

內容簡介

這個外掛是一個基於Alex Gorbatchev的SyntaxHighlighter ver. 3.0.83和2.1.382的程式碼語法加亮工具。

功能特點

基於Alex Gorbatchev的"SyntaxHighlighter"JavaScript庫。
包含了SyntaxHighlighter 3.0.83和2.1.382。(可以在3.0.83和2.1.382之間切換。)
內置TinyMCE按鈕和Quicktag按鈕,易於操作。
輕鬆包裝代碼在<pre>標籤中,以及更改先前包裝代碼的選項。
也支持短碼。
易於使用按鈕在評論中加亮代碼。(僅適用於WordPress 3.0或更高版本)
小工具顯示加亮代碼。
支持bbPress外掛程式2.0或更高版本。
支持"動態Brush加載",它可以動態加載所需的brush文件。
僅在需要加亮的文章、頁面、首頁、檔案和評論上加載JavaScripts。
通過設置面板輕鬆配置功能。
本地化:英語(默認)、日本語(日語,UTF-8)。

支援的語言

AppleScript、ActionScript3、Bash、ColdFusion、C、C++、C#、CSS、Delphi、Diff、Erlang、Groovy、HTML、Java、Java FX、JavaScript、Pascal、Patch、Perl、PHP、純文本、PowerShell、Python、Ruby、Ruby on Rails、Sass、SCSS、Shell、SQL、VB、VB NET、XHTML、XML和XSLT

注意:部分語言僅支援SyntaxHighlighter 3.0。

您還可以使用一個打包的外掛添加以下語言。

Biferno、Clojure、DOS批次檔案、F#、LISP、Lua(僅適用於SyntaxHighlighter 3.0)、MEL Script、Objective-C、PowerCLI、Processing、R、S、S-PLUS、Tcl、Verilog、Vim Script和YAML

詳細信息請見“示例”目錄。

還有許多語言支持"SyntaxHighlighter"。但是我無法捆綁它們,因為它們不與此外掛許可證兼容。如果您想要,可以試著搜索。

推薦的外掛

“SyntaxHighlighter TinyMCE按鈕”可以提供功能豐富的tinyMCE按鈕,用於SyntaxHighlighter。
“CodeMirror for CodeEditor”可以突出顯示主題和外掛編輯器中的源代碼,並提供有用的工具欄。

感謝

“SyntaxHighlighter”庫由Alex Gorbatchev創建。
“shBrushBiferno.js”由Sandro Bilbeisi創建。
“shBrushClojure.js”由Daniel Solano Gómez創建。
“shBrushDosBatch-V2.js”和“shBrushDosBatch-V3.js”由Andreas Breitschopp創建。他還開發

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.7.3) 或搜尋安裝

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

原文外掛簡介

This plugin is code syntax highlighter based on Alex Gorbatchev’s SyntaxHighlighter ver. 3.0.83 and 2.1.382.
Features

Based on Alex Gorbatchev’s “SyntaxHighlighter” JavaScript library.
Including both SyntaxHighlighter 3.0.83 and 2.1.382.(Can switch between 3.0.83 and 2.1.382.)
Built-in TinyMCE buttons and Quicktag button are easy to operate.
Easy to wrap your code in

 tag and change options of previously-wrapped code.
Support shortcode also.
Easy to highlight code in comments using buttons.(WordPress 3.0 or higher)
Widget to show highlighted code.
Support bbPress plugin 2.0 or higher.
Support “Dynamic Brush Loading” which allows to load only necessary brush files dynamically.
Loading JavaScripts on only posts, pages, home, archives, search results and comments which have the code to highlight.
Easy to configure features through the setting panel.
Localization: English(Default), 日本語(Japanese, UTF-8).

Supported languages
AppleScript, ActionScript3, Bash, ColdFusion, C, C++, C#, CSS, Delphi, Diff, Erlang, Groovy, HTML, Java, Java FX, JavaScript, Pascal, Patch, Perl, PHP, Plain text, PowerShell, Python, Ruby, Ruby on Rails, Sass, SCSS, Shell, SQL, VB, VB NET, XHTML, XML and XSLT
Note: A part of languages are only for SyntaxHighlighter 3.0.
You can also use a bundled plugin to add following languages.
Biferno, Clojure, DOS batch file, F#, LISP, Lua(only for SyntaxHighlighter 3.0), MEL Script, Objective-C, PowerCLI, Processing, R, S, S-PLUS, Tcl, Verilog, Vim Script and YAML
For details, see “sample” directory.
There are many other languages for “SyntaxHighlighter”. But I can’t bundle them because they are not compatible with this plugin license. If you want, try to search.
Recommended plugin

“SyntaxHighlighter TinyMCE Button” can provide feature-rich tinyMCE buttons for SyntaxHighlighter.
“CodeMirror for CodeEditor” can highlight sourcecodes in theme and plugin editor and provide a useful toolbar.

Thanks

“SyntaxHighlighter” libraries was created by Alex Gorbatchev.
“shBrushBiferno.js” was created by Sandro Bilbeisi.
“shBrushClojure.js” was created by Daniel Solano Gómez.
“shBrushDosBatch-V2.js” and “shBrushDosBatch-V3.js” were created by Andreas Breitschopp. He also developed nice plugins.
F# brush was written by Steve Gilham.
“shBrushLisp.js” was created by Knut Haugen.
“shBrushLua.js” was created by 최익필.
“shBrushMel.js” was created by Skye Book.
“shBrushObjC.js” was created by Matej Bukovinski.
“shBrushPowerCLI.js” was created by Dan J.
“shBrushProcessing.js” was created by Sebastian Korczak.
The css for “shBrushProcessing.js” was written by Sebastian Korczak.
“shBrushR.js” was created by Yihui Xie.
“shBrushTcl.js” was created by henix.
“shBrushVerilog.js” was created by Hanly De Los Santos.
“shBrushVimscript.js” was created by nelstrom(Drew Neil).
“shBrushYaml.js” was created by Nicolas Perriault.
Judah revised the awkward descriptive text that was shown before comment form.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon