How To Use Statamic Markdown Syntax Highlighting

Published on

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

```ruby
  def my_method
    puts "Hello!"
  end
```

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.