To see [s]source code[/s] {!text}(macro pramiters) perchance to write more

just to see the source code
to read args :scream_cat:
+1

is/could?.. some kind of plugin
add view source detail/summery
or similar show/hide
to be displayed
eg

each line 
{{{ [all[current]get[text]splitregexp[\n]] }}}

… is any (filter/function?ect) way to determine if tiddler content has only …pragma

or even?! selectively display content (perhaps?) in an $if block
only when the tiddler is “viewed” and not \imported via some method …

it appears that using $:/tags/Global/View/Body effectively imports pragma definitions

so (i would imagine) ether
- alter defaults (?plugin) so template displays show/hide source

- or (hypothetically) some-how say
if display-context == then display stuff

might well be potential paths to
sooth those with “parameter recall amnesia”

am i barking up the wrong tree ?

have you some source-snippet
that keeps your cursor off the edit button ???

in the mean time
happy wiki-ing

<!–
please
do not ask an “ai”
it has less cules than uri :(u (o)r i )
8D
\–>

It’s not quite clear to me what you’re seeking, but is it possible that it’s covered just by adding the field code-body to your tiddler with the value yes?

it appears that automatically works
a-freaking-mazing

yes :mage: thanks!
for the suggestion
the same to who ever
added this wiki-wizardry

wiki-foo++

1 Like

If the tiddler only contains code, then code-body=yes only displays the text rather than render it, however if transcluded elsewhere it will be rendered.

  • @EricShulman often writes his solutions Code/Display and documentation in single tiddlers

Personaly, and I belive others, have extended the “code view” to allow ctrl-click to edit, the current behaviour allows copy code from top left corner. All godd for code\ only.

Have a look at $:/ControlPanel, if you set this to code-body=yes you will not see the output.

If you want to see both code and rendering, you can do a little customisation. As I have done in the past for my own design and development. I put a toggle on tiddlers, if active would show both the code AND render the tiddler. A global toggle when not in design mode can be added.

Some tiddlers were very big and I only wanted to see the pragma at the top. So I made this solution sensitive to a marker in the text field <!-- end code view --> so you could place this after the pragma (or anywhere), and only the pragma would appear in the code view.

  • I can find this and share it if you want, just ask

However in coming hours I am doing a 10km Bush/Coastal Walk, so it may be tomorrow :grinning_face_with_smiling_eyes: