painter.setEOLMarkersPainted(false);
painter.setEOLMarkersPainted(true); painter.setBracketHighlightEnabled(true);  InputHandler inputHandler = getInputHandler(); inputHandler.addKeyBinding("C+c", new ActionListener() { public void actionPerformed(ActionEvent e) { copy(); } }); inputHandler.addKeyBinding("C+v", new ActionListener() { public void actionPerformed(ActionEvent e) { paste(); } });
	public ClientTextArea(boolean editable, String mode) {		super();				setFont(textFont);		setEditable(editable);		setPreferredSize(new Dimension(300, 200));		SyntaxDocument doc = new SyntaxDocument();		doc.putProperty(PlainDocument.tabSizeAttribute, new Integer(4));				setDocument(doc);		setElectricScroll(2);		if(mode.equals("XML"))			setTokenMarker(new XMLTokenMarker());		TextAreaPainter painter = getPainter();		SyntaxStyle[] styles = painter.getStyles();		styles[Token.KEYWORD1] = new SyntaxStyle(new Color(0, 102, 153), false, true);		styles[Token.KEYWORD2] = new SyntaxStyle(new Color(0, 153, 102), false, true);		styles[Token.KEYWORD3] = new SyntaxStyle(new Color(0, 153, 255), false, true);		styles[Token.LITERAL1] = new SyntaxStyle(new Color(255, 0, 204), false, false);		styles[Token.LITERAL2] = new SyntaxStyle(new Color(204, 0, 204), false, false);		painter.setStyles(styles);		painter.setEOLMarkersPainted(false);	}