[WordPress] 外掛分享: Smart Code Escape

首頁外掛目錄 › Smart Code Escape
WordPress 外掛 Smart Code Escape 的封面圖片
10+
安裝啟用
★★★★★
5/5 分(1 則評價)
3984 天前
最後更新
問題解決
WordPress 1.2.1+ v1.1 上架:2014-12-07

內容簡介

這是一個 WordPress 外掛,可以在 pre 標籤內將大於符號、小於符號和 & 符號轉換成 HTML 實體。它支援像是 Prism 語法突顯器等情境下的語法。如果 code 標籤直接置於 pre 標籤中,它不會被轉換。程式碼在顯示前會被轉換,這讓你在後端編輯時輕鬆獲得未轉換的版本。

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Smart Code Escape」→ 直接安裝(推薦)

原文外掛簡介

A tiny plugin for WordPress which converts greater than signs, smaller than signs and ampersands to html entities within pre tags. It supports semantic syntax you would use when using the Prism highlighter for example. If a code tag sits immediately within a pre tag it will not be escaped.
Code is escaped before it is displayed which gives you easy editing access in the backend as you will always see the unescaped version.

延伸相關外掛

文章
Filter
Mastodon