EditorHighlighter () { EditorColorsScheme scheme = EditorColorsManager.getInstance().getGlobalScheme(); SyntaxHighlighter syntaxHighlighter = SyntaxHighlighterFactory.getSyntaxHighlighter(myInjectedFile.getLanguage(), getProject(), myInjectedFile.getVirtualFile()); EditorHighlighter highlighter = HighlighterFactory.createHighlighter(syntaxHighlighter, scheme); highlighter.setText(getDocument().getText()); highlighter.setEditor(new LightHighlighterClient(getDocument(), getProject())); return highlighter; }