You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using redcarpet with the HTML renderer and :highlight => true is turned on.
When I create a code block like so:
```ruby
class Foo
end
```
I don't see any syntax higlighting. I do however see in my browser that the code block was given class="ruby".
Should I be expecting to see syntax highlighting? Or does redcarpet just assign a class equal to whatever language I specified, leaving me to style the class myself?
The text was updated successfully, but these errors were encountered:
Actually, the :highlight option allows you to write ==something== and get <mark>something</mark> once it's parsed.
Redcarpet doesn't come with syntax highlighting out of the box because people have different needs or sometimes don't need it at all. You can easily highlight code with Rouge. Once it's installed, you can do something like:
I'm using redcarpet with the HTML renderer and
:highlight => true
is turned on.When I create a code block like so:
```ruby
class Foo
end
```
I don't see any syntax higlighting. I do however see in my browser that the code block was given
class="ruby"
.Should I be expecting to see syntax highlighting? Or does redcarpet just assign a class equal to whatever language I specified, leaving me to style the class myself?
The text was updated successfully, but these errors were encountered: