Repo Source Files



Basic slide delimiter syntax allows markdown content to be split into a series of slides. Special code delimiter syntax allows the loading of source code from any file in your repo into a fenced code block on any slide.

The code delimiter syntax takes the following options:

  • A relative path to any source file within your repo and
  • A lang option - providing an optional langugage hint for your source code
  • A title option - providing an optional title text for the slide
  • A color option - providing an optional slide background color override


Learn By Example

This PITCHME.md markdown snippet:

---?code=src/server.go&lang=golang

Results in the rendering of the following slide:

CODE-DELIMITER


Learn By Example With Delimiter Options

This PITCHME.md markdown snippet:

---?code=src/server.go&lang=golang&color=#1E1F21&title=Simple HTTP Server

Results in the rendering of the following slide:

CODE-DELIMITER-WITH-OPTIONS

Note #1

A well chosen color option can make your code merge seamlessly with any slide background.

Note #2

The title option on the code-delimiter causes a title-text element to be auto-rendered directly above the code-block on the slide. You an active the custom theme setting in order to customize the look-and-feel of this title-text.