I'm using slim in my rails app to generate my views, and have enabled the markdown engine (with redcarpet) so I can write markdown in my slim files like so:
h2#usage Usage
markdown:
### Via JavaScript
Call the dropdowns via JavaScript:
```js
$('.dropdown-toggle').dropdown()
```
I've also enabled fenced code blocks in my config/initializers/slim.rb
:
Slim::Embedded.default_options[:markdown] = {
fenced_code_blocks: true
}
My question is, how how do I configure either redcarpet or another gem to generate syntax highlighting for the fenced code blocks in my markdown? I've looked into pygments and rouge, but I'm a bit lost.