bit-docs-html-highlight-line/highlight-line.js module

Main front end JavaScript file for static portion of this plugin.

addHighlights()

Goes through the lines in a <code> block and highlights the specified ranges.

Finds all <span highlight-line="..."></span> elements and uses those as directives for what to highlight.

If the only option was specified to the @highlight tag, then non-highlighted lines will be collapsed if they exist greater than three lines away from a highlighted line.