Enable Syntax Highlighting

Use Pandoc to add syntax highlighting support to your rib site.

  1. Import the desired style from Pandoc

    import Text.Pandoc.Highlighting (styleToCss, tango)
    
  2. Add it to the <head> section of your HTML:

    style_ [type_ "text/css"] $ styleToCss tango
    
  3. Make sure that your Markdown files specify the language in their fenced code blocks. See Github documentation for details.

Created on: