This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
harlowe:link-show [2019/04/16 02:47] l created |
harlowe:link-show [2019/04/16 02:50] l |
||
---|---|---|---|
Line 13: | Line 13: | ||
Typical [[harlowe:click-append|(click-append:)]] usage resembles the following, where the inserted text provides supplementary content to the passage's prose, and is written separately from it: | Typical [[harlowe:click-append|(click-append:)]] usage resembles the following, where the inserted text provides supplementary content to the passage's prose, and is written separately from it: | ||
- | ``` Ah. You remember her eldest well - [a frail, anxious child]<more|. Unlikely to raise too much of a fuss. | + | <code>Ah. You remember her eldest well - [a frail, anxious child]<more|. Unlikely to raise too much of a fuss. |
- | (click-append: ?more)[, constantly frowning, mumbling every word they utter, flinching at the slightest noise] ``` | + | (click-append: ?more)[, constantly frowning, mumbling every word they utter, flinching at the slightest noise]</code> |
Conversely, typical [[harlowe:show|(show:)]] usage resembles the following, where the inserted text is a continuation of the passage's prose, and is written together with it: | Conversely, typical [[harlowe:show|(show:)]] usage resembles the following, where the inserted text is a continuation of the passage's prose, and is written together with it: | ||
- | ``` "Look, it's important to comment even the simplest code...|more)[ You might remember what it does now, but not at 4:50 PM on Friday afternoon, when you're about to push to production and a runtime error shows up in it.]" | + | <code>"Look, it's important to comment even the simplest code...|more)[ You might remember what it does now, but not at 4:50 PM on Friday afternoon, when you're about to push to production and a runtime error shows up in it.]" |
- | You (link-reveal:"struggle to listen.")[(show: ?more)] ``` | + | You (link-reveal:"struggle to listen.")[(show: ?more)] </code> |
The (link-show:) macro provides a convenient shorthand for the latter example, letting you write the final line as ''%%You (link-show: "struggle to listen.", ?more)%%''. | The (link-show:) macro provides a convenient shorthand for the latter example, letting you write the final line as ''%%You (link-show: "struggle to listen.", ?more)%%''. |