I'm not sure what you mean by "Try putting your code inside a code block - the button with the "#"..... New to arduino and C
Above the gray box where you type and paste code, there are a series of icons. One of them has a # sign on it. Press that BEFORE you paste code, and you will see
with the cursor between the ] and the [. That is where you paste your code.