Not a dumb question, because it’s not obvious unfortunately!
This post has all the details, but the big issue is that the code fence icons don’t actually show up. The buttons are still there - you can hover over them and a tooltip will appear.
In short, type three backticks, then enter your code on a newline, then end with three more backticks on a new line.