EditorEx () { EditorEx editor = super.createEditor(); final String fileName = getFileName(); if (fileName != null) { editor.setHighlighter(EditorHighlighterFactory.getInstance().createEditorHighlighter(getProject(), fileName)); } editor.getSettings().setWhitespacesShown(false); editor.setHorizontalScrollbarVisible(true); editor.setVerticalScrollbarVisible(true); setupBorder(editor); return editor; }