Closeread enables the highlighting of both code and text using a similar syntax.
To highlight particular lines of code for your reader, you can add an attribute to your trigger called highlight
. To highlight lines of code, you can either use a series of line numbers separated by commas or a range separate by a hyphen. Some examples:
highlight="1,5"
: highlight lines 1 and 5
highlight="1-5"
: highlight lines 1 through 5
The following section demonstrates that functionality. Note that all stickies use .scale-to-fill
The syntax for a lineblock (like a poem) is the same, with one addition.
highlight="cr-myspan"
: highlight particular span within a lineblock