Skip to content
SONG OF TIME
← TIL
Mar 19, 2021
March 19th, 2021

How To Use Statamic Markdown Syntax Highlighting

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.