@Override
	public void run() {
		long interval = 50;
		while(true){
			long now = System.currentTimeMillis();
//			System.out.println(now);
			if(editor.needsHighlight){
				if(now - editor.lastEdited >= interval){
					editor.highlightSyntax();
				}
			}
			try {
				sleep(interval);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
	}