popup.add(new JMenuItem(COPY)).addActionListener(ClientInputHandler.CLIP_COPY);
popup.add(new JMenuItem(PASTE)).addActionListener(ClientInputHandler.CLIP_PASTE);
if("XML".equals(mode))
{setTokenMarker(new XMLTokenMarker());}
final TextAreaPainter painter = getPainter();
final 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(true);
painter.setBracketHighlightEnabled(true);
}