Package org.eclipse.xtext.xdoc.generator.util

Examples of org.eclipse.xtext.xdoc.generator.util.Utils.formatCode()


  }
 
  @Test
  public void testFormatCode_05() {
    final Utils utils = new Utils();
    final String code = utils.formatCode("\'\\[mein\\]\'", null);
    Assert.assertEquals("<span class=\"string\">&apos;\\[mein\\]&apos;</span>", code);
  }
 
  public LangDef langDef() {
    final ArrayList<?> _cacheKey = CollectionLiterals.newArrayList();
View Full Code Here


    langDef.getKeywords().add("dsfsd");
    final Utils utils = new Utils();
    String code = null;
    StopWatch watch = new StopWatch();
    for (int i = 0; i < 2 ;i++) {
      code = utils.formatCode("mein foo ist bar nicht baz.", langDef);
    }
    watch.resetAndLog("keywords");
    assertEquals("mein&nbsp;<span class=\"keyword\">foo</span>&nbsp;ist&nbsp;<span class=\"keyword\">bar</span>&nbsp;nicht&nbsp;<span class=\"keyword\">baz</span>.", code);
  }
  public void testFormatCode_01() throws Exception {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.