Write Markdown posts in WordPress with syntax highlighting

This was not easy and took me two hours to figure out. Here’s how I got it working.

Download Jetpack Plugin

  • You first need to download the Jetpack plugin.
  • Activate that plugin.

markdown in jetpack

  • When you first see the options you won’t see it, you have to click the See Other 28 Features button

see other features

Enable Comments in Markdown

  • Enable comments in Markdown by going to Settings > Discussion

Comments in Markdown

Download Crayon Syntax Highlighter

Change Crayon settings

  • In Crayon settings choose the theme you want.

choose Crayon theme

Add your fencing tags

  • Open and close your fencing tags
    • Add three backticks to open and three backticks to close
    • You also specify your coding language after the three opening backticks
<!DOCTYPE html>
<html lang="en">
    <meta charset="UTF-8">
   <div class="container">
       <h1>Important stuff</h1>

Ant that’s all you need to do to start writing blogs using Markdown and showing your code in a readable format.

Leave a Reply

Your email address will not be published. Required fields are marked *