WordPress plugin intelligence profile

GetGit

Embeds syntax-highlighted GitHub repo content into your blog posts.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 3.5
Current version0.3
WordPress coverageTested up to WordPress 3.5
Minimum stackWP 3.5.1 · PHP —
Directory statusactive
Last directory update19 Mar 201313y ago
Active installations10Adoption metric — not a quality score
WordPress.org ratingNo WordPress.org ratings yet
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 GetGit version 0.3 as active, updated 13y ago and tested up to WordPress 3.5.

Overview

About this plugin

This plugin embeds the content of a public GitHub repository into your WordPress posts. It’s capable of retrieving either the full content or a snippet of a file. The code will be displayed with syntax highlighting and line numbers.

Now supports content caching for improved page responsiveness and load times.

Syntax highlighting is provided by the Sunlight JS syntax highlighter. Many thanks to those involved in that project!

Usage

This plugin registers a shortcode that allows for embedding GitHub repo content into blog posts. To embed content into your post, use the github shortcode like so:

[github userid="[target user id]" repoid="[target repo id]" path="[path to content]" language="[language of target content]"]

Attributes used by the github shortcode:

-

userid – The user ID of the repository owner.

-

repoid – The ID of the repository that contains the target content.

-

path – The full path to the content. This path should start at the repository root, not inclusive of the leading /, and terminate with the name of the target content’s filename.

-

language – The programming language of the code contained in the content. This information will be passed to the syntax highlighter. The value must match one of the recognized values for the Sunlight JS engine.

For a list of values, see the Sunlight documentation.

-

startloc – Optional. The starting line of code to display in the code snippet. If this attribute is ommitted, the first line of retrieved file will be the first line of code displayed in the snippet.

-

stoploc – Optional. The final line of code (inclusive) to display in the code snippet. If this attribute is ommitted, the final line of content shown in the snippet will be the last line of the retrieved file.

Examples

js from the jQuery project repo:

js” language=”javascript”]

Retrieve lines 39 through 64 of this plugin’s content retrieval class:

php” language=”php” startloc=39 stoploc=64]

WordPress.org metadata

Plugin tags

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

  • code
  • embed
  • github
  • repositories
  • snippet
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 3.5

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

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to3.5
Minimum requirementsWordPress 3.5.1 · PHP not listed
Update activity19 Mar 201313y 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.