I'm trying to write documentation for a wordpress theme but when I put a the same shortcode nested within it it parses it, even though it's within a shortcode which doesn't run the shortcode parser on its contents.
What I have is a shortcode called one_half, with a block enclosed with the same shortcode, like this:
The [code] shortcode doesn't run its contents through the shortcode parser. It works fine for any other shortcode, but when it's running the same shortcode as it's nested in it parses the shortcode.
I've tried various different methods of escaping such as adding extra [ and ], using HTML entities (which are lost when switching between editor modes.

Any ideas?