[WordPress] 外掛分享: CodeColorer comaptiblity with “Markdown for WordPress and bbPress”

首頁外掛目錄 › CodeColorer comaptiblity with “Markdown for WordPress and bbPress”
10+
安裝啟用
尚無評分
4941 天前
最後更新
問題解決
WordPress 3.0+ v0.1.1 上架:2012-05-07

內容簡介

這個外掛會自動將四個空格或一個 tab 縮進的 Markdown 代碼塊包在 CodeColorer 標籤中。
你也可以用以下語法指定程式碼片段使用的語言:

:ruby:
class Foo < Bar
end

也就是說,在代碼片段的第一行以兩個冒號括起程式語言的名稱,就像創建 CodeColorer 區塊時那樣。

這個外掛的原始碼儲存在
GitHub。

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.1.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「CodeColorer comaptiblity with “Markdown for WordPress and bbPress”」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

This plugin automatically wraps Markdown code blocks (indented by 4 spaces or a tab)
in CodeColorer tags. You can also specify what language the given snippet uses, by using
the following syntax:
:ruby:
class Foo < Bar end That is, the name of the language, as you’d use it when creating a CodeColorer block, enclosed by two colons on the very first line of the code snippet. The source code repository can be found over at GitHub.

延伸相關外掛

文章
Filter
Apply Filters
Mastodon