How to post code bocks into the forum


#1

I’m probably missing something obvious, but I’ve just spent 30 minutes trying to figure this out. How are people posting the neat, pink-bar-down the left, properly formatted code snippets into their posts?


#2

Scroll here to “Syntax highlighting”.

write “cpp” instead “css”, and you have a block of code with c++ syntax highlight


#3

Thanks! Might be a useful item for the forum FAQ…


#4

aslso the default in the forum is set already to cpp so you just need the backticks unless you want to write a different language