Recent Changes - Search:

Cookbook

PmWiki

pmwiki.org

Gists

Summary: Markup to allow easy embedding of syntax-highlighted github gists
Version: 2013.09.03
Prerequisites: pmwiki-2.2.52 (tested; some earlier versions okay, but not tested)
Status: active
License: GPL2
Maintainer: MichaelPaulukonis
Users: (view? / edit)
Discussion: Gists-Talk?

Questions answered by this recipe

How can I easily display github-hosted gists on my website, in standard github-markup?

Description

Enter your recipe's description here.

Installation

  1. Download pmwiki-gists.zipΔ
  2. Extract pmwiki-gists.php to your \cookbook directory.

You can also download the latest version of pmwiki-gists.php from GitHub.

Configuration

Add the following to \local\config.php

IncludeOnce("$FarmD\cookbook\pmwiki-gists.php");

Usage

(:gist <public-gist-id>:)

See http://www.xradiograph.com/PmWikiDevelopment/PmWikiGistsExamples for a complete, live list of examples.

Notes

Change log / Release notes

  • 2013.09.03 fixed conflict with MarkupExtensions or other markup (Keep() instead of return)
  • 2013.09.01 other forms of markup implemented, trap for missing or non-numeric gist-id
  • 2013.08.27 initial release, Loading a gist implemented

See also

Contributors

MichaelPaulukonis

Comments

See discussion at Gists-Talk?

Alternatives

SourceBlock

User notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki.

Edit - History - Print - Recent Changes - Search
Page last modified on August 08, 2014, at 01:16 PM