void () { // 10 // 0123456789012 String text = "<html></html>"; EditorHighlighter xhtmlHighlighter = HighlighterFactory .createHighlighter(XHtmlFileType.INSTANCE, EditorColorsManager.getInstance().getGlobalScheme(), myProject); xhtmlHighlighter.setText(text); HighlighterIterator iterator = xhtmlHighlighter.createIterator(1); assertSame("Xml tag name", XmlTokenType.XML_TAG_NAME, iterator.getTokenType()); iterator = xhtmlHighlighter.createIterator(8); assertSame("Xml tag name at end of tag", XmlTokenType.XML_TAG_NAME, iterator.getTokenType()); }