Code Highlighting

search
MaterialDocs

MaterialDocs supports code highlighting with syntax.css and Rouge or Pygments. Follow the Jekyll guide for setting up highlighting.

Example JavaScript snippet:

function pi(){
  // Approximate Pi (don't do this, use Math.PI for real projects)
  var pi = 22/7
  return pi
}