Skip to content
David Russell edited this page Aug 11, 2016 · 2 revisions

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

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

This page introduces Markdown code blocks for GitPitch developers. The GitHub Help explains the basic creation of code blocks in markdown. The end result will look something like this:

// jQuery
$('button').click(function(){
    $('h1, h2, p').addClass('blue')
    $('div').removeClass('important')
    $('h3').toggleClass('error')
    $('#foo').attr('alt', 'Lorem Ipsum')
});

Code syntax highlighting is enabled by default for all Markdown code blocks within GitPitch presentations. GitPitch syntax highlighting is powered by highlight.js which offers support for 162 languages and 74 distinct visual styles.

The default highlighting style used by GitPitch for dark-themed presentations is github-gist, and for light-themed presentations it's hybrid. However, a GitPitch developer can override this default and customize the syntax highlighting style for any presentation. See the Highlight Setting page for further details.

Clone this wiki locally