@KnickKnack said in markdown code highlight theme does not work?:
Automatically detect and highlight code blocks
It does works. Thank you.
Good morning community,
I'm running nodeBB 1.9.3 and I can't succeed in getting code snippet syntax highlighting in my instance.
As you can see below using ```ruby
on the code snippet "opening" works fine. On my instance instead highlighting doesn't seem to work at all. What could be the cause? Where can i look into?
require 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html
This is how my code highlighting box looks like:
Cheers, KK
No ideas community? No hints on what could be the cause and eventually what to check?
cheers, KK
Hi @baris, thanks so much.
I didn't checked it out since I thought it was only enabling automatic syntax detection and not highlighting, but after checking it I got highlighting out of the box for free
Cheers, KK