[WordPress] 外掛分享: Simple Syntax Highlighting

首頁外掛目錄 › Simple Syntax Highlighting
WordPress 外掛 Simple Syntax Highlighting 的封面圖片
60+
安裝啟用
★★★★
4/5 分(1 則評價)
2855 天前
最後更新
問題解決
WordPress 3.0+ v1.1 上架:2018-01-19

內容簡介

Simple Syntax Highlighting (SSH) 是一款簡單、乾淨且輕量級的 WordPress 外掛程式,可整合 highlight.js,它具有自動語言偵測功能並啟用語法突顯。您只需要選取文本,然後按下 按鈕,或按格式添加程式碼到 內。

鳴謝:

Highlight.js - https://highlightjs.org

行號外掛程式:https://github.com/wcoder/highlightjs-line-numbers.js

支援撰寫語言如下:

Java
C
HTML
CSS
PHP
以及其他 176 種語言,詳見:https://highlightjs.org/static/demo/

安裝

下載 Simple Syntax Highlighting 外掛程式壓縮檔,並解壓縮。
上傳「simple-sintax-highlighting」資料夾到「wp-content/plugins」資料夾。
透過 WordPress 儀表板的「外掛程式」選單啟用外掛程式。
開啟選單:設定 > Simple Syntax Highlighting 以進行設定。

螢幕截圖

外掛程式設定
編輯器

外掛標籤

開發者團隊

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

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

原文外掛簡介

Simple Syntax Highlighting (SSH), simple, clean and lighweight plugin to integrate highlight.js into WordPress. highlightjs has automatic language detection an turn on syntax highlighting. You just need to select text than press button or add the code into

    format.
Credit:
Highlight.js – https://highlightjs.org
Line numbering plugin: https://github.com/wcoder/highlightjs-line-numbers.js
Supports highlighting

Java
C
HTML
CSS
PHP
and more, up to 176 language, see: https://highlightjs.org/static/demo/

Instalation

Download plugin Simple Syntax Highlighting archive, than unzip it.
Upload the “simple-sintax-highlighting” folder to the “wp-content/plugins” directory.
Activate the plugin through “plugins” menu in WordPress dashboard.
Open menu: Setting > Simple Syntax Highlighting to configure.

Screenshoot

Plugin Settings
Editor

延伸相關外掛

文章
Filter
Apply Filters
Mastodon