public void processChangedLines(int offset,int length) throws BadLocationException {
  String content=m_Self.getText(0,m_Self.getLength());
  int startLine=m_RootElement.getElementIndex(offset);
  int endLine=m_RootElement.getElementIndex(offset + length);
  if (getMultiLineComment()) {
    setInsideMultiLineComment(commentLinesBefore(content,startLine));
  }
  for (int i=startLine; i <= endLine; i++) {
    applyHighlighting(content,i);
  }
  if (isMultiLineComment()) {
    commentLinesAfter(content,endLine);
  }
 else {
    highlightLinesAfter(content,endLine);
  }
}

public void processChangedLines ( int offset , int length ) throws BadLocationException { String content = m_Self . getText ( 0 , m_Self . getLength ( ) ) ; int startLine = m_RootElement . getElementIndex ( offset ) ; int endLine = m_RootElement . getElementIndex ( offset + length ) ; if ( getMultiLineComment ( ) ) { setInsideMultiLineComment ( commentLinesBefore ( content , startLine ) ) ; } for ( int i = startLine ; i <= endLine ; i ++ ) { applyHighlighting ( content , i ) ; } if ( isMultiLineComment ( ) ) { commentLinesAfter ( content , endLine ) ; } else { highlightLinesAfter ( content , endLine ) ; } }
determine how many lines have been changed , then apply highlighting to each line .
