docs: function highlight(template) {
          if (selection._highlighter) {
            selection.removeHighlight();
          }
  
          var ranges = shard();
          selection._highlighter = [];
  
          for (var r in ranges) {
            var subrange = ranges[r];
  
            var scope = angular.element(range.startContainer).scope();
            var highlighter = $compile(template)(scope)[0];
            subrange.surroundContents(highlighter);
            selection._highlighter.push(highlighter);
          }
  
          return selection._highlighter;
        }