跳到内容

Gist API Code insert

v1.1.5

pinchoalex · 2019年2月7日 上架

Inserts Github Gist code directly in to your posts via shortcode without using js embed script

正在使用
10 以下
评分
暂无
累计下载
2,277
最近更新
2025年10月18日
需要 WordPress 4.0.0+已测试到 6.3.15PHP 7.2+

贡献者

截图

Plugin`s shortcode button in WP classic editor
Plugin`s shortcode button in WP classic editor
Highlighted code example from gist api via shortcode
Highlighted code example from gist api via shortcode

Unlike the standard embedding method that use script like this

<script src="https://gist.github.com/..."></script>

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" ]

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums