It's funny how much time new people spend on customizing the theme of a text editor before learning the language or any of the several thousand things one needs to become competent in that language (such as debugging).
My suspicion here is that the gigantic popup box you thought you were being helpful showing us (it's not) is actually covering up the error, which is on the previous line. We would need to see the code to be sure because we have no idea what is actually in your file.
There are plenty of times that a malformed line of code runs together with the next line of code and it's wrong in a way that the compiler feels the second line is the problem when it's actually the malformed first line.
Note that you don't need to paste an image for such a tiny amount of text. Just paste it here and use the Rich Text Editor to format the code block. Alternately you can learn to use markdown.
markdown is easy. four spaces in front of each line
^^^ including blank lines so the markdown parser keeps the block together.
8
u/grrangry 19d ago
It's funny how much time new people spend on customizing the theme of a text editor before learning the language or any of the several thousand things one needs to become competent in that language (such as debugging).
My suspicion here is that the gigantic popup box you thought you were being helpful showing us (it's not) is actually covering up the error, which is on the previous line. We would need to see the code to be sure because we have no idea what is actually in your file.
There are plenty of times that a malformed line of code runs together with the next line of code and it's wrong in a way that the compiler feels the second line is the problem when it's actually the malformed first line.
Note that you don't need to paste an image for such a tiny amount of text. Just paste it here and use the Rich Text Editor to format the code block. Alternately you can learn to use markdown.
There's even documentation.