In a recent answer on a recent question there was code written within a spoiler. I edited the post a bit to format the markdown better, but I ended up with something that just looks... horrible...
How can code be written within a spoiler in posts?
What I ended up with was:
>! `somefunction`<br>
>! `indented line`<br>
>! `another indented line`<br>
>! `return something`<br>
>! `end`
This shows as:
somefunction
indented line
another indented line
return something
end
but I find that the markdown to accomplish that is really ugly.