I learned from other codecademy users on the forums to use backticks(above the tab key on a keyboard) like this to post code with syntax highlighting:
```code here```
on the forums, and it used to work all the time for me, but now it only works in some cases
print hello
like it worked here, but trust me, there are times when I tried it. And the text in the backticks just disappears, both in the preview window and when the post is posted.
Also as you might have seen, the title of this discussion says
but the "` is actually supposed to be three backticks.
I put my blank line at the top before the first backticks so I pressed enter after So I have this code:. It also works if I put a blank like at the bottom after the second set of backticks, in that case then yes, you would press enter after typing the backticks.