Package syntaxhighlighter.beans

Examples of syntaxhighlighter.beans.CodeContainer


  public static CodeContainer brush(String aText, Brush aBrush) {

    Parser aParser = new SyntaxHighlighterParser(aBrush);
    List<ParseResult> aResultList = aParser.parse(null, aText);

    CodeContainer container = new CodeContainer();

    int currentIndex = 0;
    for (ParseResult parseResult : aResultList) {
      if (parseResult.getOffset() >= currentIndex) {
View Full Code Here


      "some_code(\"an example string\", true);\n" +
      "// */\";\n" +
      "some text at \n" +
      "the end";
   
    CodeContainer container = SyntaxHighlighterParserUtil.brush(aJavaString, new BrushJava());
   
    List<CodeRow> codeRows = container.getCodeRows();
    CodeRow codeRow;

    assertEquals(12, codeRows.size());
   
    codeRow = codeRows.get(0);
View Full Code Here

TOP

Related Classes of syntaxhighlighter.beans.CodeContainer

Copyright © 2018 www.massapicom. 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.