(replace-with:) entry in Harlowe 3.3.5 manual is missing key macro in second example.
In the manual's description of (replace-with:)
the second example is given as:
(set: $locked to [(text-color:red)[Locked Content] - Beat the game to unlock])
creates a changer which replaces the attached hook with[(text-color:red)[Locked Content] - Beat the game to unlock]
. This is mostly similar to passing the string"(text-color:red)[Locked Content] - Beat the game to unlock"
, but the contents of the code hook are syntax-highlighted in the passage editor, making it easier to read.
This example is invalid due to missing, crucially, the (replace-with:)
macro itself. Presumably the example should read (set: $locked to (replace-with:)[(text-color:red)[Locked Content] - Beat the game to unlock])
instead.