內容簡介
預設情況下,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)
