Hi Tones,
The HTML object method does display the file, but I can't add annotations
to with dynannotate.I realize I was not clear about what I wanted to use
the file for in my original post.
I'm trying to get the text file to display just as though it were a plain
text tiddler stored in the wiki. I know I won't be able to edit it from the
wiki, but I was hoping that I would be able to add annotations with
dynannotate.
On Friday, 6 November 2020 22:11:40 UTC, TW Tones wrote:
>
> 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 [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/940a94ba-02bf-45cc-9424-5aba53456ad7o%40googlegroups.com.