I think this is close to what you want.
I have only to find a way to make nowiki invisible in output but persistent in edit mode.
<nowiki> <pre> perl -we 'say' </pre> </nowiki>
perl -we 'say'</nowiki>
|Replies are listed 'Best First'.|
Re^3: Good Intentions: Wikisyntax for the Monastery
by choroba (Archbishop) on Oct 19, 2016 at 08:13 UTC
by LanX (Cardinal) on Oct 29, 2016 at 12:33 UTC