middleman / middleman-syntax

Code syntax highlighting plugin via Rouge for Middleman
https://middlemanapp.com
MIT License
179 stars 57 forks source link

Cannot get syntax-highlighting to work #3

Closed debajit closed 11 years ago

debajit commented 11 years ago

I have the following settings:

#
# Markdown settings (config.rb)
#
set :markdown_engine, :redcarpet
set :redcarpet, :autolink => true, :no_intra_emphasis => true, :fenced_code_blocks => true, :strikethrough => true
activate :syntax
#
# Snippet from Gemfile
#
gem "middleman-syntax"
gem "redcarpet"

yet, I cannot get the syntax highlighting to work from a blog post. What am I doing wrong?

bhollis commented 11 years ago

What does your markdown look like?

Here's what I have in my config.rb:

set :markdown_engine, :redcarpet
set :markdown, :fenced_code_blocks => true, :smartypants => true
activate :syntax