setMarkOccurrencesColor(new Color(220, 220, 220));
setMatchedBracketBGColor(null);
setMatchedBracketBorderColor(new Color(192, 192, 192));
getActionMap().put("copy", new RSyntaxTextAreaEditorKit.CopyAsRtfAction());
Font editorFont = getFont().deriveFont(UIManager.getFont("TextField.font").getSize2D());
SyntaxScheme syntaxScheme = getSyntaxScheme();
syntaxScheme.setStyle(Token.SEPARATOR, new Style(new Color(200, 0, 0), null));
syntaxScheme.setStyle(Token.RESERVED_WORD, new Style(Color.BLUE, null, editorFont));
setFont(new Font("Monospaced", editorFont.getStyle(), editorFont.getSize()));
addKeyListener(new KeyAdapter() {
@Override
public void keyPressed(KeyEvent e) {
boolean isControlDown = e.isControlDown();