Daya Bay Reactor Neutrino Experiment
TWiki > FormatTokens (1 vs. 5)
Daya Bay webs: Public | 中文 | Internal | Help   Log In or Register

Welcome | Register | Changes | Topics | Index | Search | Go
 <<O>>  Difference Topic FormatTokens (5 - 2013-08-22 - TWikiContributor)

 <<O>>  Difference Topic FormatTokens (4 - 2011-10-12 - TWikiContributor)

 <<O>>  Difference Topic FormatTokens (3 - 2010-06-06 - TWikiContributor)

 <<O>>  Difference Topic FormatTokens (2 - 2010-05-26 - TWikiContributor)

 <<O>>  Difference Topic FormatTokens (1 - 2008-01-22 - TWikiContributor)
Line: 1 to 1
Added:
>
>

Formatting Tokens

TWiki defines some standard special tokens that can be used to replace characters in some parameters - notably those to FormattedSearch and IfStatements - to defer evaluation of the parameter until later. These special tokens are often called "escapes", because they allow the character to "escape" from its normal meaning.

$n or $n() New line. Use $n() if followed by alphanumeric character, e.g. write Foo$n()Bar instead of Foo$nBar
$nop or $nop() Is a "no operation". This variable gets removed; useful for nested search
$quot Double quote (") (\" also works)
$percnt Percent sign (%)
$dollar Dollar sign ($)

If you ever find yourself needing to escape an escape, you can use $dollar to escape the leading dollar, thus: $dollarpercnt.


View | History: r5 < r4 < r3 < r2 | More

View | History: r5 < r4 < r3 < r2 | More
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Daya Bay? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.FormatTokens.