How To Use Statamic Markdown Syntax Highlighting

Published on

Fensed code blocks in statamic can use GitHub style language specifiers to add syntac highlighting.

  def my_method
    puts "Hello!"

Using that in a markdown fieldtype will render a correctly highlighted code section.

statamic syntax highlighting

Just remember, PrismJS is needed to render the syntax highlighinting correctly.