Zooming
Closeread enables the reader to zoom in on particular bits of both code and text using a similar syntax to highlighting
To zoom to particular lines of code for your reader, you can add an attribute to your trigger called zoom-to
. To zoom to a line of code, you can either use a line number or a span id.
zoom-to="3"
: zoom to line 3zoom-to="cr-love
: zoom to the line containing the spancr-love
The following section demonstrates that functionality.
Now here is some code zooming.
hlz
is a short-cut that you can use when you want to zoom into on a line while also highlighting it (or a span within the line).