User Tools

Site Tools


harlowe:click-replace

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

harlowe:click-replace [2017/10/09 20:39] (current)
Line 1: Line 1:
 +**(click-replace:​ // [[harlowe:​HookName|hookname]] or [[harlowe:​String|String]]//​) -> //​[[harlowe:​Changer|Changer]]//​**
  
 +A special shorthand combination of the [[harlowe:​click|(click:​)]] and [[harlowe:​replace|(replace:​)]] macros, this allows you to make a hook
 +replace its own text with that of the attached hook whenever it's clicked. ''​%%(click:​ ?​1)[(replace:?​1)[...]]%%''​
 +can be rewritten as ''​%%(click-replace:​ ?​1)[...]%%''​.
 +
 +=== Example usage: ===
 +
 +<​code>​
 +My deepest secret.
 +(click-replace:​ "​secret"​)[longing for you].
 +</​code>​
 +=== See also: ===
 +
 +[[harlowe:​click-prepend|(click-prepend:​)]],​ [[harlowe:​click-append|(click-append:​)]]
harlowe/click-replace.txt ยท Last modified: 2017/10/09 20:39 (external edit)