Title: WP Github Gist
Author: Sudar Muthu
Published: <strong>اگست 23, 2011</strong>
Last modified: اکتوبر 13, 2021

---

پلگ انز ئے شوھاز کن

اے پلگ ان **hasn’t گوں ورڈپریس ءِ نوکیں 3 مزنیں ریلیزاں** آزمائش کنگ بوتگ۔ اے دگہ
برجاہ دارگ یا حمایت نہ کنگ بیت ءُ ورڈپریس ءِ نوکیں ورژنانی گوں کارمرز کنگ ءِ وھد
ءَ مطابقت ءِ جیڑھ بوت کنت۔

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

# WP Github Gist

 [Sudar Muthu](https://profiles.wordpress.org/sudar/) ئے وسیلہ ئا

[ایرگیج](https://downloads.wordpress.org/plugin/wp-github-gist.0.5.zip)

 * [سرجمیں](https://bcc.wordpress.org/plugins/wp-github-gist/#description)
 * [جائزہ](https://bcc.wordpress.org/plugins/wp-github-gist/#reviews)
 *  [انسٹالیشن](https://bcc.wordpress.org/plugins/wp-github-gist/#installation)
 * [دیمروی](https://bcc.wordpress.org/plugins/wp-github-gist/#developers)

 [کمک](https://wordpress.org/support/plugin/wp-github-gist/)

## سرجمیں

WP Github Gist WordPress Plugin, provides the ability to embed gist and files from
Github in your blog posts or pages. Even though Github doesn’t provide a way to 
embed files, this Plugin still works by using the gist-it service.

### Features

#### Embed Gist

To embed a gist you have to use the following shortcode

    ```
    [gist id = "{GIST_ID}" file = "{GIST_FILE}" width = "{WIDTH}" height = "{HEIGHT}"]
    ```

The following are the different attributes that you can use in the shortcode

 * `id` – Id of your gist.
 * `file` – File inside gist that you want to display. If there is only one file
   in the gist, then you can ignore this.
 * `width` – Width of the code wrapper. Default is `100%`.
 * `height` – Height of the code wrapper. Default is `100%`.

eg: `[gist id = "12345" file = "myfile" width = "100%" height = "100%"]`

#### Embed Github files

To embed a github file you have to use the following shortcode

    ```
    [github file = "{GITHUB_FILE}" start_line = "{START_LINE}" end_line = "{END_LINE}"]
    ```

 * `{GITHUB_FILE}` – full path to your github file. eg: If you want to embed https://
   github.com/sudar/MissileLauncher/blob/master/MissileLauncher.cpp then `{GITHUB_FILE}`
   would be /sudar/MissileLauncher/blob/master/MissileLauncher.cpp
 * `{START_LINE}` – If you want to embed only part of the file, then you can specify
   the starting line number (optional)
 * `{END_LINE}` – If you want to embed only part of the file, then you can specify
   the ending line number (optional)

eg: `[github file = "/sudar/MissileLauncher/blob/master/MissileLauncher.cpp"]`

if you want to embed only part of the file, then you can specify the start and end
line as well

    ```
    [github file = "/sudar/MissileLauncher/blob/master/MissileLauncher.cpp" start_line = "10" end_line = "20"]
    ```

### Changing Gist-it server

By default, this Plugin uses my own [gist-it server](http://gist-it.sudarmuthu.com)
which is hosted on a free Google App Engine account. If you expect significant amount
of traffic to your blog, then do consider using your own gist-it server. You can
follow the [instructions to deploy your own gist-it server](http://sudarmuthu.com/wordpress/wp-github-gist/changing-gist-it-server)
and then go to the settings page to change the url.

### Translation

The pot file is available with the Plugin. If you are willing to do translation 
for the Plugin, use the pot file to create the .po files for your language and let
me know. I will add it to the Plugin after giving credit to you.

### Support

Support for the Plugin is available from the [Plugin’s home page](http://sudarmuthu.com/wordpress/wp-github-gist).
If you have any questions or suggestions, do leave a comment there or contact me
in [twitter](http://twitter.com/sudarmuthu).

### Readme Generator

This Readme file was generated using [wp-readme](http://sudarmuthu.com/wordpress/wp-readme),
which generates readme files for WordPress Plugins.

## انسٹالیشن

Extract the zip file and just drop the contents in the wp-content/plugins/ directory
of your WordPress installation and then activate the Plugin from Plugins page.

## جائزہ

![](https://secure.gravatar.com/avatar/344653ee76e4fc90cb406062cd8a6fc04977571f5eb09af7ae58736249d65f98?
s=60&d=retro&r=g)

### 󠀁[Not working](https://wordpress.org/support/topic/not-working-1689/)󠁿

 [Ryan Hellyer](https://profiles.wordpress.org/ryanhellyer/) ستمبر 3, 2016

Unfortunately, this plugin does not seem to be working. If a solution is found, 
I'll bump my rating up to where it should be, as the basic idea is great.

 [ کلیں 1 جائزہ ئا پڑھ ](https://wordpress.org/support/plugin/wp-github-gist/reviews/)

## کمک کنوک & دیمروئی کنوک

“WP Github Gist” اوپن سورس سافٹ ویئر اِنت۔ اے پلگ ان ءِ تہا رند ءِ مردماں وتی کرد
پیلو کتگ۔

کمک کار

 *   [ Sudar Muthu ](https://profiles.wordpress.org/sudar/)

[“WP Github Gist” ءَ وتی زبان ءَ رجانک کن اِت۔](https://translate.wordpress.org/projects/wp-plugins/wp-github-gist)

### دیمروئی ءِ تہا دلچسپی داریت؟

[کڈ ءَ براؤز کن اِت](https://plugins.trac.wordpress.org/browser/wp-github-gist/)،
[SVN ءِ ذخیرہ](https://plugins.svn.wordpress.org/wp-github-gist/) ءَ بچار اِت، یا
[دیمروئی ءِ لاگ](https://plugins.trac.wordpress.org/log/wp-github-gist/) ءَ [RSS](https://plugins.trac.wordpress.org/log/wp-github-gist/?limit=100&mode=stop_on_copy&format=rss)
ءِ وسیلہ ءَ سبسکرائب بہ کن اِت۔

## چینج لاگ

#### 0.5 (2015-08-01) (Dev time: 1 hours)

 * New: Add ‘height’ parameter to specify the height of gist and github embeds

#### 0.4 (2014-07-11) (Dev time: 3 hours)

 * Fix: Handle changes in github gist embed code
 * Tweak: Remove Legacy and PHP 4 complaint code
 * Tweak: Add support for specifying width in gist shortcode

#### 0.3 (2012-05-31) (Dev time: 2 hours)

 * Added the ability to choose gist-it server
 * Added information to the screen help tab
 * Generated Pot file for translation

#### 0.2 (2012-05-02)

 * Fixed issue in embedding Github files

#### 0.1 (2011-08-23)

 * Initial Version

## میٹا

 *  ورژن **0.5**
 *  گڈی رند ءَ نوک کنگ بوتگ **5 سال پیشا**
 *  فعالیں تنصیبات **30+**
 *  ورڈپریس ورژن ** 2.8 یا گیشتر **
 *  **5.8.19** ءَ داں آزمائش کنگ بوتگ۔
 *  زبان
 * [English (US)](https://wordpress.org/plugins/wp-github-gist/)
 * ٹیگ
 * [embed](https://bcc.wordpress.org/plugins/tags/embed/)[Gist](https://bcc.wordpress.org/plugins/tags/gist/)
   [Github](https://bcc.wordpress.org/plugins/tags/github/)
 *  [دیمروئی کتگیں ندارگ](https://bcc.wordpress.org/plugins/wp-github-gist/advanced/)

## درجہ بندی

 1 چہ 5 استاراں

 *  [  0 5-ستارہ جائزہ     ](https://wordpress.org/support/plugin/wp-github-gist/reviews/?filter=5)
 *  [  0 4-ستارہ جائزہ     ](https://wordpress.org/support/plugin/wp-github-gist/reviews/?filter=4)
 *  [  0 3-ستارہ جائزہ     ](https://wordpress.org/support/plugin/wp-github-gist/reviews/?filter=3)
 *  [  0 2-ستارہ جائزہ     ](https://wordpress.org/support/plugin/wp-github-gist/reviews/?filter=2)
 *  [  1 1-ستارہ جائزہ     ](https://wordpress.org/support/plugin/wp-github-gist/reviews/?filter=1)

[تئی جائزہ](https://wordpress.org/support/plugin/wp-github-gist/reviews/#new-post)

[کلیں جائزہ ئا بہ گند](https://wordpress.org/support/plugin/wp-github-gist/reviews/)

## کمک کار

 *   [ Sudar Muthu ](https://profiles.wordpress.org/sudar/)

## کمک

چیزے گشگ ءِ ھاترا رستگ؟ کمک لوٹ ئے؟

 [سپورٹ فورم ئا بہ گند](https://wordpress.org/support/plugin/wp-github-gist/)

## دیگ

آیا شما اے پلگ ان ءِ دیمروئی ءِ حمایت کنگ لوٹ ات؟

 [ اے پلگ ان ءَ عطیہ بہ کن اِت ](http://sudarmuthu.com/if-you-wanna-thank-me)