Markdown documents can also have code samples:

function hello(name) {
  return 'hello ' + name;
}
doctype html
html
  head
    title Jade
  body
    h1 Jade
    p Jade is awesome