> > Is there any way to create a generic "view source" button for view > toolbar? Which would work on any type of tiddler and toggle between source > and rendered versions of the tiddler (or open the given tiddler in using > view source template). > > This is very easy with basic tiddlywiki, just create a tiddler tagged $:/tags/ViewTemplate then have a list widget that determines when to display the content in a <pre><$view/></pre> as per Mohammad. The filter on the list widget decides when to display the code view.
I have done this a number of times, and will do so again and share soon, as I have more ideas. Here is some work in progress to decide which system tiddlers I automatically provide the code view for <$list filter="[all[shadows+tiddlers]prefix[$:/]removeprefix[$:/]splitbefore[/]removesuffix[/]sort[]]"> </$list> Still working Tony -- 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/de2c1067-9f6b-496f-87ff-78c21f7a8cf6%40googlegroups.com.

