[WordPress] 外掛分享: Pygment It

前言介紹

  • 這款 WordPress 外掛「Pygment It」是 2014-08-07 上架。
  • 目前有 10 個安裝啟用數。
  • 上一次更新是 2014-09-27,距離現在已有 3872 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.0.1 以上版本才可以安裝。
  • 有 1 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

glauco_dsc |

外掛標籤

syntax | pygment | highlighter | highlighting |

內容簡介

預設情況下,Pygment It 會自動檢測 Pygments 是否已安裝(透過命令 -v pygmentize)。如果沒有安裝,它將使用 http://pygments.appspot.com 來進行代碼高亮(但不支持:突出顯示行、行號和起始行號)。

語法突出顯示的代碼作為文章元數據進行緩存
管理員面板可選擇佈景主題、預設語言和 Pygments 使用方式(本地、外部 API 或自動檢測)
有多個可用的主題(如 GitHub、Monokai、Railscasts、Mustang,等等)
使用本地安裝的 Pygments 時支援 hl_lines(突出顯示的行)、linenos(行號)和linenostart(起始行號)
適用於所有 Pygments 支援的語言(完整列表可在此處找到)

原文外掛簡介

By default, Pygment It will auto discover if Pygments is installed (through command -v pygmentize). If not, it will use http://pygments.appspot.com to highlight code (but without support for: highlighted lines, line numbers and line number to start).

Syntax-highlighted code cached as post metadata
Admin panel to choose theme, default language and Pygments usage (local, external API or auto discover)
Multiple themes available (github, monokai, railscasts, mustang, among others..)
Support for hl_lines (highlighted lines), linenos (line numbers) and linenostart (line number to start) when using a local installation of Pygments
Works with all Pygments’s supported languages (the full list can be found here)

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Pygment It」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


0.2 | 1.0.0 | trunk |

延伸相關外掛(你可能也想知道)

暫無相關外掛推薦。

文章
Filter
Apply Filters
Mastodon