JSyntaxHighlighter/LineNumbers.java
public void insertUpdate(DocumentEvent e) {
		        anchor = lastIndex = -1;
		        try {
		              checkLines(e.getDocument().getText(0, e.getDocument().getLength()));
		        } catch (BadLocationException ex) {
		              ex.printStackTrace();
		        }
		  }
/**
		   * Listens for changes on the Document in its associated text pane.
		   * <p/>
		   * If the number of lines has changed, it updates its view.
		   */
Listens for changes on the Document in its associated text pane.

If the number of lines has changed, it updates its view.
Listens for changes on the Document in its associated text pane . If the number of lines has changed it updates its view .
public void insertUpdate(DocumentEvent e) {
		        anchor = lastIndex = -1;
		        try {
		              checkLines(e.getDocument().getText(0, e.getDocument().getLength()));
		        } catch (BadLocationException ex) {
		              ex.printStackTrace();
		        }
		  }
public void insertUpdate ( DocumentEvent e ) { anchor = lastIndex = - 1 ; try { checkLines ( e . getDocument ( ) . getText ( 0 , e . getDocument ( ) . getLength ( ) ) ) ; } catch ( BadLocationException ex ) { ex . printStackTrace ( ) ; } }
Listens for changes on the Document in its associated text pane.
Listens for changes on the Document in its associated text pane .