This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Gistr

Description

Gistr allows you to easily embed Gists from GitHub in your WordPress site. Simply enter the Gist ID in the Gistr Post Block and viola! Gistr was developed especially for the Block (Gutenberg) Editor experience in WordPress 5.0+ and will not work if you have disabled it.

Gistr allows you to easily:

*Embed Gist by pasting the Gist ID into the options box (that’s it!)
*Hide/show line numbers
*Highlight rows
*Show all or select line numbers
*Hide Gist footer
*Cache Gists

Gistr is a WordPress Plugin implementation of Gist Embed by Blair Vanderhoof.

Screenshots

  • Example of an embedded Gist
  • Gistr Block in the block editor. Once selected the input area and options will appear
  • View of the Gistr Block when selected. You will paste the Gist ID in the input box as shown.
  • Available options when configuring Gistr

Installation

  1. Upload the plugin files to the /wp-content/plugins/gist directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the Plugins screen in WordPress
  3. In the post or page editor, add a new block. You will find Gistr in the ‘Embed’ block section
  4. Paste the Gist ID into the input area of the block.
  5. You can configure the Gist settings in the options area on the right hand side.

FAQ

Where do I find the Gist ID?

The Gist ID is the numbers and letters after the username in the Gist URL. For example, if this is the Gist URL: https://gist.github.com/myusername/774c98e6e6f139091aedf6c18109c335
Then the Gist ID is all the characters after the /myusername/

Reviews

يوليوز 14, 2019
Well done - it works! So far the best plug in and I tried lots.. to embed gists. Please do support it in the future.
ماي 22, 2019
I love this, thank you! I was looking for something like this, that didn't come bundled with a bunch of other blocks I didn't need. I love the ability to hide the bottom bar, and adjust line numbers / highlights. I used this together with some custom styling to get a nice dark-theme for my snippet embeds.
Read all 2 reviews

Contributors & Developers

“Gistr” is open source software. The following people have contributed to this plugin.

Contributors

Translate “Gistr” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.

Changelog

1.0

  • First stable release