Title: GitHub Gist WordPress Plugin
Author: jingweno
Published: <strong>2010 年 7 月 30 日</strong>
Last modified: 2010 年 9 月 22 日

---

搜索插件

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://s.w.org/plugins/geopattern-icon/github-gist.svg)

# GitHub Gist WordPress Plugin

 作者：[jingweno](https://profiles.wordpress.org/jingweno/)

[下载](https://downloads.wordpress.org/plugin/github-gist.zip)

 * [详情](https://cn.wordpress.org/plugins/github-gist/#description)
 * [评价](https://cn.wordpress.org/plugins/github-gist/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/github-gist/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/github-gist/#developers)

 [支持](https://wordpress.org/support/plugin/github-gist/)

## 描述

GitHub Gist WordPress Plugin allows you to embed [GitHub Gist](http://gist.github.com)
snippets with a [gist] tag, instead of copying and pasting HTML. For example, to
embed the [github_gist_wordpress_plugin_test.txt](http://gist.github.com/447298.js?file=github_gist_wordpress_plugin_test.txt)
file from [gist: 447298](http://gist.github.com/447298.js), fill in the id and file
attributes in the [gist] tag:

[gist id=447298 file=github_gist_wordpress_plugin_test.txt]

or

copy the embedding JavaScript code from GitHub and directly paste it in the body
of the [gist] tag:

[gist]`<script src="http://gist.github.com/447298.js?file=github_gist_wordpress_plugin_test.
txt"></script>`[/gist].

The [gist] tag also expands the content of the embedded Gist and wraps it with “`
<noscript><code><pre>`” so that search engine spiders, users with javascript disabled
and users reading your blog through RSS will still see your code in a blog entry.

## 屏幕截图

 * [[
 * With JavaScript On
 * [[
 * With JavaScript Off

## 安装

1) Download the plugin zip file.

2) Unzip.

3) Upload the github_gist_wordpress_plugin directory to your wordpress plugin directory(/
wp-content/plugins).

4) Activate the plugin.

5) Use the [gist] tag in your posts or pages

## 评价

此插件暂无评价。

## 贡献者及开发者

「GitHub Gist WordPress Plugin」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ jingweno ](https://profiles.wordpress.org/jingweno/)

[帮助将「GitHub Gist WordPress Plugin」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/github-gist)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/github-gist/)，查看[SVN仓库](https://plugins.svn.wordpress.org/github-gist/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/github-gist/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/github-gist/)。

## 更新日志

#### 1.0

 * quote a Gist with id and file attribute.
 * quote a Gist with the embedded JavaScript code.
 * expand a Gist’s content and wrap it with `<code>`

#### 1.1

 * fixed margin of the display when JavaScript is disabled.
 * added branding information.

## 额外信息

 *  版本 **1.1**
 *  最后更新：**16 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 2.5.1 或更高版本 **
 *  已测试的最高版本为 **3.0.5**
 *  语言
 * [English (US)](https://wordpress.org/plugins/github-gist/)
 * 标签
 * [embed](https://cn.wordpress.org/plugins/tags/embed/)[Gist](https://cn.wordpress.org/plugins/tags/gist/)
   [git](https://cn.wordpress.org/plugins/tags/git/)[Github](https://cn.wordpress.org/plugins/tags/github/)
   [shortcode](https://cn.wordpress.org/plugins/tags/shortcode/)
 *  [高级视图](https://cn.wordpress.org/plugins/github-gist/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/github-gist/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/github-gist/reviews/)

## 贡献者

 *   [ jingweno ](https://profiles.wordpress.org/jingweno/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/github-gist/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](http://owenou.com)