How to nest code within a list using markdown
I know how to format code, but can't get it to work in this answer. Not sure why?
You were inside a list, so the four spaces were being interpreted as continuing the list, not starting a code block. You needed to add another four spaces to indent it as code. I've fixed it for you.