Basic info: TW5 using TW markup.Sometimes I want to hide text in a tiddler that only I see while in edit mode. I have found that this works great:<div style="display:none;">This is hidden text.</div>
@@display:none;
This is hidden text
@@
@@color:red;
This is some warning text. PAY ATTENTION!
@@
@@color:red;font-size:400%;border:1px solid red;
WARNING! DANGER WILL ROBINSON!
@@
<div style="color:red;font-size:400%;border:1px solid red;">
WARNING! DANGER WILL ROBINSON!
</div>
Then, the Robot said, <span style="color:red;font-size:400%;border:1px solid red;">WARNING! DANGER WILL ROBINSON!</span> as it flailed it's tubular arms wildly.
Then, the Robot said, @@color:red;font-size:400%;border:1px solid red; WARNING! DANGER WILL ROBINSON!@@ as it flailed it's tubular arms wildly.
<!--
My text I want to hide
-->
If you use CSS to hide text, you might consider defining your own class for that purpose. That way you could change the visibility of hidden text everywhere just by changing the CSS definition.
\define mynote()
some stuff
\end
<$list filter="[{$:/config/debugmode}match[yes]]" variable=nul>
some stuff that will only show when in debug mode
</$list>
You can also place stuff inside a widget that does not display its content or is unlikely ever to do so.
Regards
Tony
<$list filter="[all[current]tag[network]]">
<$reveal type="match" state="!!type" text="application/json">
testKey: {{##testKey}}
<$edit-text tiddler=<<currentTiddler>> index="testKey" tag="input" />
</$reveal>
<$reveal type="nomatch" state="!!type" text="application/json">
<$view />
</$reveal>
</$list>
well, if such kind of information is so welcomed,
The reveal only interpretes the tiddler only with the given template, if it has type JSON. Otherwise it will display the content as normal TW-Text. You can also add other protections like version-fields and so on, but I think the basic ideas is visible.