Source Code Files




Introducing the Source Code Delimiter

Basic slide delimiter syntax allows markdown content to be split into a series of slides. Special source code delimiter syntax allows the loading of source code from any file onto your slide using the following delimiter options:

  • The code delimiter takes a relative path to any source file within your repo and
  • A lang option - providing a langugage hint for your source code
  • A color option - providing an optional slide background color override

Important! Source file paths are relative to the root directory of your repository.


Simple SCD Slide Example

This PITCHME.md sample markdown snippet uses a python code language hint:


---?code=src/python/sample.py&lang=python

@snap[north span-100]
#### Source Code Delimiter
@snapend

Results in the rendering of the following slide:

CODE-DELIM-SIMPLE

See the Code Highlighting Guide to learn how you can control the highlighting style and background color of your code slides.


Pro Code Zoom SCD Example

This PITCHME.md sample markdown snippet uses a ruby code language hint:


---?code=src/ruby/sample.rb&lang=ruby zoom-21

@snap[north span-100]
#### Source Code Delimiter with Pro Code Zoom
@snapend

Results in the rendering of the following slide:

CODE-DELIM-PRO-ZOOM

This sample slide provides a quick introduction to Code ZOOM. To learn about the full set of Code ZOOM features see the Pro Code Zoom Guide.