Skip to content
David Russell edited this page Sep 6, 2016 · 3 revisions

There are three ways to embed code within a GitPitch presentation:

  1. Use Markdown Code Blocks
  2. Use GitPitch GIST Slides
  3. Use GitPitch Image Slides

This page introduces GitPitch GIST Slides, a feature powered by standard Markdown but unique to GitPitch. GitHub GIST are a fantastic way to share code, notes, and snippets. Now GIST can also be used as a great building block when building GitPitch presentations.

To embed a GitHub GIST within a slide in a GitPitch presentation you simply need to specify the unique GIST identifier when declaring a slide delimiter in your PITCHME.md markdown file. For example, here is an example of a GIST Slide that displays a snippet of Groovy code:

#HSLIDE?gist=cf4227416b55dac54a53

GIST can be embedded within horizontal and vertical slides in a GitPitch presentation. The following example demonstrates a vertical GIST slide that displays a snippet of Scala code:

#VSLIDE?gist=28ee3d19ddef9d51b15adbdfe9ed48da

Using GIST Slides, GitPitch developers enjoy all of the benefits of GitHub GIST, including 100% reusable code snippets, excellent syntax highlighting, code indentation and styling.

The GitPitch GIST feature is available to all GitPitch slideshow presentations, regardless of hosting on GitHub, GitLab or Bitbucket.

Clone this wiki locally