Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

tag to force twine to treat passage as text, not code/html (sugarcube)

Hi!

I'm trying to force twine to display a passage as if it didn't contain html code, but plain text(letting the player read the html code as part of the passage). As it is, it runs the html it understands, leaving errors for the rest. I tried wrapping the text in <pre><code></code></pre>, but it doesn't seem to understand that. Is there any way I can achieve this with either css or inline html? The only other solution I've figured out is to make the thing into a picture, but since I also want to use a typewriter transition I don't exactly know how to go about that...

Thanks a lot for the help!

Comments

  • You can use the {{{code}}} markup to tell the story format to display something as if it was code.

    The following text should appear as HTML
    {{{
    <p>
    The quick <b>brown</b> fox jumped <i>over</i> the lazy <em>dog</em>
    </p>
    }}}
  • Thank you! Worked wonders :)
Sign In or Register to comment.