內容簡介
與標準嵌入方法不同,該外掛使用簡單的短代碼將 Gist 代碼直接插入您的文章中,並使用 Prism 代碼高亮顯示器進行突出顯示。
示例:
添加來自 Gist 的所有文件:
[apCI id="123456789"]
添加 Gist 中的單個文件:
[apCI id="123456789" file="filename.php"]
添加 Gist 中的單個文件以及其原始文件連結:
[apCI id="123456789" file="filename.php" raw="yes" ]
外掛標籤
開發者團隊
原文外掛簡介
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" ]
