-
Notifications
You must be signed in to change notification settings - Fork 0
Code Slides
There are three ways to embed code within a GitPitch slideshow presentation:
- Use Markdown Code Blocks
- Use GitPitch GIST Slides
- 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.
####GitPitch Wiki TOC
####Slideshow Basics
####Slideshow Slide Types
####Slideshow Look and Feel
- Slideshow Settings
- Theme Setting
- Background Setting
- Logo Setting
- Highlight Setting
- Math Notation Setting
- Vertical Center Setting
- Slideshow Custom CSS
####Slideshow Behavior
####Slideshow Controls
####GitPitch Social
####Appendix