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.


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.


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