30 Srcloc Snips
This snip implements clickable links to srcloc locations.
The snip is initialized with an appropriate editor, into which a representation for the link can be inserted. When the reprenstation has been inserted, the activate-link method needs to be called to activate the link.
The srcloc field specifies where the link points.This makes the content of the snip’s editor clickable, such that clicking highlights the position of the srcloc.
Finds the editor containing the specified srcloc and selects it.