tokenMarker.insertLines(ch.getIndex() + 1, ch.getChildrenAdded().length - ch.getChildrenRemoved().length); tokenMarker.linesChanged(ch.getIndex(),2);
int index = ch.getIndex(); int len = ch.getChildrenAdded().length - ch.getChildrenRemoved().length;  tokenMarker.linesChanged(index,1);  tokenMarker.insertLines(ch.getIndex() + 1,len); index += (len + 1); if(index < tokenMarker.getLineCount()) {  tokenMarker.linesChanged(index,1); }
	protected void fireInsertUpdate(DocumentEvent evt)	{		if(tokenMarker != null)		{			DocumentEvent.ElementChange ch = evt.getChange(				getDefaultRootElement());			if(ch != null)			{				tokenMarker.insertLines(ch.getIndex() + 1,					ch.getChildrenAdded().length -					ch.getChildrenRemoved().length);				tokenMarker.linesChanged(ch.getIndex(),2);			}			else			{				tokenMarker.linesChanged(getDefaultRootElement()					.getElementIndex(evt.getOffset()),1);			}		}		super.fireInsertUpdate(evt);	}