[WordPress] 外掛分享: SmartAss Highlighter

首頁外掛目錄 › SmartAss Highlighter
WordPress 外掛 SmartAss Highlighter 的封面圖片
10+
安裝啟用
尚無評分
3967 天前
最後更新
問題解決
WordPress 2.7+ v1.0 上架:2015-01-14

內容簡介

SmartAss Highlighter 是用於 WordPress 的簡單易用的程式碼美化套件。
在 <pre> 和 </pre> 標籤之間的程式碼會被高亮。
支援幾乎所有語言,不必特別說明代碼語言。
可針對每個文章進行自訂,使用 [highlighter] 短碼啟用該插件。
若要更改樣式,修改插件目錄中的 highlighter.css。
按鈕可供兩種編輯模式使用,即可視化和文本編輯器。
行號默認為 ON,但可以使用修改後的短碼 [highlighter line=0] 將其轉為 OFF。
重要提示 - 此插件不會經常更新,可能會延遲更新(如果需要)。

基本用法

切換到僅文本模式,在“編輯我的個人資料”中勾選“在撰寫時禁用可視化編輯器”
創建新文章。
將您的代碼放在 <pre> 和 </pre> 中間。
必須使用短碼 [highlighter] 啟用 SmartAss-Highlighter。
行號默認為啟用,但可以使用 [highlighter line=0] 關閉行號。
注意:僅擁有短碼 [highlighter] 的文章才會被突顯顯示。您的先前文章將不受影響。
請勿使用特殊字符的 HTML 代碼(&lt; 或 &gt;),請直接使用 < 或 >

更多信息

如需有關此插件的更多信息,請訪問:插件主頁面。

外掛標籤

開發者團隊

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

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

原文外掛簡介

SmartAss Highlighter is a simple and easy to use code prettifier for wordpress.
The code between

 and 

tags is highlighted.
Almost all languages are supported, no need to mention the code language.
Customizable for each post, use [highlighter] shortcode to enable for particular post.
To change theme, modify highlighter.css in the plugin directory.
Button is available for both editor modes, i.e., Visual and Text editor.
Line Numbers are ON by default but can be turned OFF by using modified shortcode [highlighter line=0]
IMPORTANT – This plugin would not be updated very frequently, updates (if required) may delay

Basic Usage

Switch to Text Only Mode, Go to “Edit my profile” and then check “Disable the visual editor when writing”
Create new post
Put your code in between

 and 

MUST use shortcode [highlighter] to activate the SmartAss-Highlighter
Line numbers are on by default, but can be switched off by using [highlighter line=0]
Note: Only the Posts having shortcode [highlighter] will be highlighted. Your previous posts won’t be affected.
Do NOT use html codes for special characters ( < or > ), Directly use < or >

More Information
For more information of this plugin, please visit: Plugin Homepage.

文章
Filter
Apply Filters
Mastodon