Is it possible to get language-specific syntax highlighting in the markdown code blocks? Something like what GitHub does? If not, what's the best way to submit suggestions for the forum?
Hi Donovan, thanks for providing the feedback and I confirm we're working on it.
I'll notify through post as soon as it will be available.
Great news, thanks!
the syntax highlighting should work now.
// comment it out!
cout << "This is an highlighted world!";
Awesome! It works with
print "Thank you!"
cout << "For adding syntax highlighting!";
For everybody interested in syntax highlighting, nodeBB is pretty smart in recognizing the language you're using by simply checking your code snippet, but in case you really want to hard-code the language set simply use the following line when starting a code snippet:
where <language> can be anything like python or c++