Try using the ViewWidget and specifying the format: 
https://tiddlywiki.com/#ViewWidget

On Sunday, March 8, 2020 at 11:43:53 PM UTC+1, Scott Simmons (Secret-HQ) 
wrote:
>
> Here's another issue I'm trying to tackle and hoping someone will share 
> some insight:
>
> I have several tiddlers of type "text/html" that contain XML files.  I 
> like having them render out in the ViewTemplate in an iframe.  But 
> occasionally I want to transclude them into another tiddler and have them 
> show up as monospaced code, *without* being rendered.
>
> I thought I could make a template tiddler and do something like this:
>
> *{{my XML tiddler||$:/xml-template}}*
>
> ... but what should $:/xml-template look like?
>
> Having it specify a different type ("text/plain") alone isn't enough to do 
> the trick.
>
> I've tried building a string from the content of [[my XML tiddler]] and 
> wrapping it in <pre> and </pre> with no luck,
>
> I'm pretty sure I'm stumbling all around an obvious solution and hoping 
> someone else will see it clearly.
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9add1aa6-c1a7-4b2a-bdff-c2e63f27fba0%40googlegroups.com.

Reply via email to