[WordPress] 外掛分享: Gist API Code insert

首頁外掛目錄 › Gist API Code insert
全新外掛
安裝啟用
尚無評分
153 天前
最後更新
問題解決
WordPress 4.0.0+ PHP 7.2+ v1.1.5 上架:2019-02-06

內容簡介

與標準嵌入方法不同,該外掛使用簡單的短代碼將 Gist 代碼直接插入您的文章中,並使用 Prism 代碼高亮顯示器進行突出顯示。

示例:

添加來自 Gist 的所有文件:

[apCI id="123456789"]

添加 Gist 中的單個文件:

[apCI id="123456789" file="filename.php"]

添加 Gist 中的單個文件以及其原始文件連結:

[apCI id="123456789" file="filename.php" raw="yes" ]

外掛標籤

開發者團隊

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

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

原文外掛簡介

Unlike the standard embedding method that use script like this

to embed gist code, Gist API Code insert plugin inserts code directly in to your posts using simple shortcode and highlights it with prism code highlighter.
Examples
Add all files from a gist:
[apCI id="123456789"]

Add single file from a gist:
[apCI id="123456789" file="filename.php"]

Add single file from a gist with raw file link:
[apCI id="123456789" file="filename.php" raw="yes" ]

延伸相關外掛

文章
Filter
Mastodon