User Tools

Site Tools


Sidebar

Passage markup

basics

coding

extra

list

section

whitespace

Macros

basics

colour

data structure

date and time

game state

live

maths

number

revision

saving

showing and hiding

string

styling

url

deprecated

Types of data

Special keywords

Special passage tags

harlowe:prepend

(prepend: HookName or String) → Changer

A variation of (replace:) which adds the attached hook's contents to the beginning of each target, rather than replacing it entirely.

Example usage:

  • (prepend: "Emily", "Em")[Miss ] adds “Miss ” to the start of every occurrence of “Emily” or “Em”.
  • (prepend: ?dress)[my wedding ] adds “my wedding ” to the start of the |dress> hook.

Rationale:

As this is a variation of (replace:), the rationale for this macro can be found in that macro's description. This provides the ability to prepend content to a target, adding preceding sentences or words to a text to change or reveal a deeper meaning.

See also:

harlowe/prepend.txt · Last modified: 2017/10/10 00:39 (external edit)