Hello Ali,
Unfortunately providing an image of code, is not the same as providing code as text. If you wish to copy and paste your code example into a forum post, remember that you can use the backtick symbol `, 4 times with the word markdown, on its own line to act as a signal to the forum to format the following text as if it was markdown
````markdown
my markdown text