Si, Have you tried the html object tag?
I have a newtworkcheck batch that I launch from a TiddlyDesktop wiki, that returns the result in a text file. <a title={{!!tooltip}} href="file:///C:\Data\batches\runnetworkcheck.cmd" > Go</a> <$button set="Networkcheck!!last-refresh" setTo=<<now "0hh:0mm">> > Refresh {{Networkcheck!!last-refresh}} </$button> <object width="100%" height="930" data= "file:///C:\Data\batches\networkcheck.txt"></object> It also has a button that sets a field to cause a refresh and time stamps it. Tones On Saturday, 7 November 2020 05:21:09 UTC+11, si wrote: > > I have some external source-code files that I would like to add to my wiki > as plain text so that I can make notes on them. > > Rather than making another copy of the text, I thought I would be able to > embed the file as I would a PDF or HTML file. > > I set _canonical_uri to ./folder/code.py and changed the type to > text/plain. This didn't work. > > I noticed that if I change the type to text/html, the text does get > embedded as though it were an html file. > > Is there any way to embed text and have it appear as regular plain text? > -- 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 tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/78788a4f-299b-45d7-884c-4bc623f4788ao%40googlegroups.com.