[WordPress] 外掛分享: SyntaxHighlighter Evolved PHP5

首頁外掛目錄 › SyntaxHighlighter Evolved PHP5
10+
安裝啟用
尚無評分
5236 天前
最後更新
問題解決
WordPress 2.7+ v1.4.3 上架:2011-05-09

內容簡介

SyntaxHighlighter Evolved PHP5 是一款 WordPress 外掛,可為 Alex Mills(Viper007)的SyntaxHighlighter Evolved 外掛添加對 PHP5 語言的支援。

它提供了一個與 SyntaxHighlighter Evolved WordPress 外掛配合使用的 brush。為了使用此外掛,您需要安裝 SyntaxHighlighter Evolved 外掛。

特點:

相較於捆綁的 PHP 插件,它包括了許多改進之處:

捕獲了 PHP 開始和結束標記
捕獲了雙引號字符串中的變數
捕獲了數值
認識 PHP 的大量函式名稱的超集合
捕獲自定義函式名稱

此外掛不會干擾標配的 PHP hightlighter 版本;兩個版本可以一起使用,如此示範:現場演示

注意事項:

此外掛遵循了 Alex Mills(Viper007)為擴充其外掛所概述的程式設計慣例:添加新的 brush(語言)

使用了由 David Chambers 提供的高級 javascript brush:SyntaxHighlighter 的 PHP brush

此外掛基於 apollox2 的類似工作:Scott Selikoff 的 SyntaxHighlighter Evolved AppleScript

SyntaxHighlighter Evolved WordPress 外掛由 Alex Mills(Viper007)基於 Alex Gorbatchev 的SyntaxHighlighter JavaScript package所創建。

外掛標籤

開發者團隊

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

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

原文外掛簡介

SyntaxHighlighter Evolved PHP5 is a plugin for self-hosted WordPress that adds support to Alex Mills’ (Viper007) SyntaxHighlighter Evolved plugin for the PHP5 language .
It provides a brush designed to work with the SyntaxHighlighter Evolved WordPress plugin . To be able to use this plugin, you will need the SyntaxHighlighter Evolved plugin installed.
Features:

it includes many improvements over the bundled PHP plugin

PHP opening and closing tags are captured
Variables within double-quoted strings are captured
Numerical values are captured
a large superset of PHP’s function names are recognized
Custom function names are captured

this plugin does not interfere with the standard bundled version of the PHP hightligher; both versions can be used together, as shown here :live demo

Notes:

this plugin follows the programming conventions outlined by Alex Mills (Viper007) for extending his plugin: Adding A New Brush (Language)

uses the advanced javascript brush provided by David Chambers PHP brush for SyntaxHighlighter

this plugin is based on similar work by apollox2: Scott Selikoff SyntaxHighlighter Evolved AppleScript

SyntaxHighlighter Evolved WordPress plugin by Alex Mills (Viper007) is based on the SyntaxHighlighter JavaScript package by Alex Gorbatchev.

延伸相關外掛

文章
Filter
Mastodon