Really cool! Could that code be rendered as markdown afterwards?
I posted this in !fediverse@lemmy.world some time ago about guides and megathreads going out of date.
This might be a good way to handle stuff like that, so you only have to edit in one place. Even if it doesn't render, having a plaintext guide might be ok?