Annotations allow you to change how the code is displayed and also to add interactivity.
There are two ways to add annotations:
focus
is only one of the possible annotations. The full list is:
focus
: keep the targeted code bright while dimming the restmark
: add a background color to the targeted tokenslink
: add links inside the codeFirst let's see the syntax to target different parts of the code.
To select a specific line, use the line number:
focus=2
To select a range of lines use a colon:
focus=3:5
Select a range of column from a line using brackets:
focus=5[3:6]
Combine selectors using a comma separated list:
focus=1,3:5,7[1:4,7:9]