Twine Version: 2
I’d like to be able to display the actual Twine code in the passage while the player is playing. Like combining
<<print passage.text>> with verbatim markup so the passage text is retrieved and then printed verbatim as the passage markup.
Is this possible?
the verbatim markup is here
I haven’t tried this myself but it seems like it’d be possible (using
Story.get() for retrieving the passage object first). is there an issue you’re encountering when you try it?
You can use this:
<<print '<nowiki>' + Story.get(passage()).text + '</nowiki>'>>