private void removeHighlights(){
  if (textArea != null) {
    RSyntaxTextAreaHighlighter h=(RSyntaxTextAreaHighlighter)textArea.getHighlighter();
    for (int i=0; i < tags.size(); i++) {
      h.removeMarkOccurrencesHighlight(tags.get(i));
    }
  }
  tags.clear();
}

private void removeHighlights ( ) { if ( textArea != null ) { RSyntaxTextAreaHighlighter h = ( RSyntaxTextAreaHighlighter ) textArea . getHighlighter ( ) ; for ( int i = 0 ; i < tags . size ( ) ; i ++ ) { h . removeMarkOccurrencesHighlight ( tags . get ( i ) ) ; } } tags . clear ( ) ; }
removes all highlights added to the text area by this listener .
