@Test public void testBigCDATA() throws Exception { StringBuilder sb = new StringBuilder(); int length = 100000; for (int i = 0; i < length; i++) { sb.append("a"); } String cdataContent = sb.toString(); highlight("<tag><![CDATA[" + cdataContent + "]]></tag>"); assertHighlighting(5, 14, TypeOfText.KEYWORD); int expectedCDataEndOffset = 14 + cdataContent.length(); assertHighlighting(expectedCDataEndOffset, expectedCDataEndOffset + 3, TypeOfText.KEYWORD); }
public static void highlight(SensorContext context, XmlFile xmlFile) { new XmlHighlighting(xmlFile).highlight(context); }
XmlHighlighting { public static void highlight(SensorContext context, XmlFile xmlFile) { new XmlHighlighting(xmlFile).highlight(context); } }
XmlHighlighting { public static void highlight(SensorContext context, XmlFile xmlFile) { new XmlHighlighting(xmlFile).highlight(context); } private  XmlHighlighting(XmlFile xmlFile); }
XmlHighlighting { public static void highlight(SensorContext context, XmlFile xmlFile) { new XmlHighlighting(xmlFile).highlight(context); } private  XmlHighlighting(XmlFile xmlFile); static void highlight(SensorContext context, XmlFile xmlFile); }
XmlHighlighting { public static void highlight(SensorContext context, XmlFile xmlFile) { new XmlHighlighting(xmlFile).highlight(context); } private  XmlHighlighting(XmlFile xmlFile); static void highlight(SensorContext context, XmlFile xmlFile);  }