WordPress plugin intelligence profile

WP Github Gist

Embed files and gist from Github in your blog posts or pages.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 5.8
Current version0.5
WordPress coverageTested up to WordPress 5.8
Minimum stackWP 2.8 · PHP —
Directory statusactive
Last directory update13 Oct 20215y ago
Active installations30Adoption metric — not a quality score
WordPress.org rating1.0 / 5 from 1 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records WP Github Gist version 0.5 as active, updated 5y ago and tested up to WordPress 5.8.

Overview

About this plugin

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)

cpp"]

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

cpp" start_line = "10" end_line = "20"]

Changing Gist-it server

By default, this Plugin uses my own gist-it server 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 and then go to the settings page to change the url.

Translation

The pot file is available with the Plugin. 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. If you have any questions or suggestions, do leave a comment there or contact me in twitter.

Readme Generator

This Readme file was generated using wp-readme, which generates readme files for WordPress Plugins.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • embed
  • gist
  • github
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 5.8

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 5.8.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to5.8
Minimum requirementsWordPress 2.8 · PHP not listed
Update activity13 Oct 20215y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.