Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Hi,
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? Thanks,
Donovan
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.
Cheers, Riccardo
Great news, thanks!
Hi Donovan,
the syntax highlighting should work now.
void ThisIsATest() { // comment it out! cout << "This is an highlighted world!"; }
Awesome! It works with
python:
print "Thank you!"
and C++:
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:
```<language>
where <language> can be anything like python or c++