code: private void highlightLinesAfter( String content, int line )
      throws BadLocationException
    {
      int offset = _root.getElement( line ).getEndOffset();
      // Start/End delimiter not found, nothing to do
      int startDelimiter = indexOf( content, getStartDelimiter(), offset );
      int endDelimiter = indexOf( content, getEndDelimiter(), offset );
      if( startDelimiter < 0 )
      {
        startDelimiter = content.length();
      }
      if( endDelimiter < 0 )
      {
        endDelimiter = content.length();
      }
      int delimiter = Math.min( startDelimiter, endDelimiter );
      if( delimiter < offset )
      {
        return;
      }
      // Start/End delimiter found, reapply highlighting
      int endLine = _root.getElementIndex( delimiter );
      for( int i = line + 1; i < endLine; i++ )
      {
        Element branch = _root.getElement( i );
        Element leaf = getCharacterElement( branch.getStartOffset() );
        AttributeSet as = leaf.getAttributes();
        if( as.isEqual( _comment ) )
        {
          applyHighlighting( content, i );
        }
      }
    }
docs: /*
  Highlight lines to start or end delimiter