[WordPress] 外掛分享: Syntax Highlighting

首頁外掛目錄 › Syntax Highlighting
WordPress 外掛 Syntax Highlighting 的封面圖片
全新外掛
安裝啟用
★★★★★
5/5 分(1 則評價)
3250 天前
最後更新
問題解決
WordPress 4.0+ v0.1 上架:2017-04-25

內容簡介

這個外掛基於 JavaScript 庫 HighLight Js,提供了選擇 70 個不同樣式的代碼高亮功能。您可以在後台選擇預設的高亮顏色,也可以添加小工具讓使用者在前台自行選擇高亮樣式。

功能包括

為您的代碼片段添加語法高亮。
從 50 多種樣式中選擇適合您的風格。
一個小工具讓使用者在前台自行選擇高亮風格。

配置

通過 WordPress 中的「外掛」菜單啟用這個外掛。
進入外掛設置頁面,添加文章類型或者添加代碼高亮功能。
然後從這裡選擇一個風格,點擊示範:HighLight JS。
要讓使用者改變高亮風格,請到您的儀表板,將小部件添加到您選擇的側邊欄中。
最後,在發表文章時,不要忘記在語法高亮元框中選擇「開啟」

鳴謝

圖片由 Hélène titre「平面設計師」提供。

外掛標籤

開發者團隊

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

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Syntax Highlighting」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

The plugin is based on the javascript library HighLight Js, it offers the possibility to choose among 70 styles of coloring. You can choose a default color in the back office. You can also add a widget to let the choice of coloring to visitors.
Features Include

Add syntax highlighting to your code snippets.
Choose style from more than 50 choices.
A widget allows visitors to make their choice on the front

Configuration

Activate the plugin through the “Plugins” menu in WordPress.
Go to the plugin setting page and add the types of articles or add syntax highlighting.
Then choose a theme for the coloring, demo here :HighLight JS.
To let visitors change the coloring style, go to your dashboard to add the widget to the sidebar of your choice.
Finally, when you add a code in a publication, do not forget to check ON in the Syntax Highlighting metabox.

Credits

Pictures by Hélène titre “graphic designer”

延伸相關外掛

文章
Filter
Apply Filters
Mastodon