@Override public void insertString(int offset,String str,AttributeSet a) throws BadLocationException {
  if (m_AddMatchingEndBlocks && (m_BlockStart.length() > 0) && str.equals(m_BlockStart)) {
    str=addMatchingBlockEnd(offset);
  }
 else   if (m_UseBlanks && str.equals("\t")) {
    str=m_Indentation;
  }
  super.insertString(offset,str,a);
  processChangedLines(offset,str.length());
}

@ Override public void insertString ( int offset , String str , AttributeSet a ) throws BadLocationException { if ( m_AddMatchingEndBlocks && ( m_BlockStart . length ( ) > 0 ) && str . equals ( m_BlockStart ) ) { str = addMatchingBlockEnd ( offset ) ; } else if ( m_UseBlanks && str . equals ( "\t" ) ) { str = m_Indentation ; } super . insertString ( offset , str , a ) ; processChangedLines ( offset , str . length ( ) ) ; }
override to apply syntax highlighting after the document has been updated .
