How to get inline pseudo-comments for extensions?

Some of the examples in RB (for example: 11 “First Name Basis”) have regular text interspersed with the example code, in such a way that when you click on the “copy” icon only the example code is copied over.

Can this be done when creating an extension?

What I’ve tried so far:

  1. Unindented or indented comments (using square brackets) – are simply left out of the example text entirely.
  2. Unindented uncommented text – causes the example code to be copied only up until that point.
  3. Indented uncommented text – is treated as part of the example code itself.

No, I don’t think so.

Thanks for the confirmation, zarf.

For anyone else interested, I see there’s already a uservoice suggestion about this:

inform7.uservoice.com/forums/573 … esentation

I’ve added my vote.

As is mentioned in that Uservoice suggestion, you can at least add separate copy buttons for each contiguous part of your example code (by prefixing each section with “*:”). Obviously this isn’t ideal, but it’s better than having a single copy button that only copies some of the code.