JComponent () { final Document document = ((EditorFactoryImpl)EditorFactory.getInstance()).createDocument(true); ((DocumentImpl)document).setAcceptSlashR(true); myTextArea = EditorFactory.getInstance().createEditor(document, myProject, FileTypes.PLAIN_TEXT, true); final EditorSettings settings = myTextArea.getSettings(); settings.setLineNumbersShown(false); settings.setLineMarkerAreaShown(false); settings.setFoldingOutlineShown(false); settings.setRightMarginShown(false); settings.setAdditionalLinesCount(0); settings.setAdditionalColumnsCount(0); settings.setAdditionalPageAtBottom(false); EditorEx editorEx = (EditorEx)myTextArea; editorEx.setBackgroundColor(UIUtil.getInactiveTextFieldBackgroundColor()); editorEx.setColorsScheme(EditorColorsManager.getInstance().getSchemeForCurrentUITheme()); myTextArea.getComponent().setPreferredSize(new Dimension(700, 400)); return myTextArea.getComponent(); }