Insight & Insanity

web development with a dash of life

Pastebin Shortcode (with some GitHub flavoring)

Easily insert specific Pastebin files with this shortcode [ pastebin id=”xxxxxxxx” ], and gives the include a GitHub styled makeover.

Usage

Two ways are provided to insert the shortcode. (The value “xxxxxxxx” represents your Pastebin file ID.)

  • Insert [ pastebin id=”xxxxxxxx” ] manually.
  • The plane text editor “Pastebin” shortcode button.

You can place these shortcodes in pages, posts or any custom content.

Installation

  1. Unzip pastebin-shortcode.zip and upload the pastebin-shortcode folder to/wp-content/plugins/.
  2. OnPlugins > Installed Plugins page, activate the Pastebin Shortcode plugin.

Screenshots

Discussion