I would like to note that you should wrap code in `` (for inline code) or in code block fences to improve readability and add a button (for a code block only) to be able to quickly copy any code snippet.
A quote from How to post in the Questions category :