Examples of SyntaxHighlighter


Examples of hu.jokeman.xparser.gui.viewer.visitors.SyntaxHighlighter

            NodeCounter nc = new NodeCounter ();
            doc.accept (nc);
            System.out.print (nc.getResults ());
           
            // syntax highlight
            SyntaxHighlighter shl = new SyntaxHighlighter (fos);
            doc.accept (shl);
            System.out.println ("Az XML alapj�n k�sz�lt szintaxis-szinezett " +
                    "HTML-dokumentum megtal�lhat� a(z) " + args [0] + ".html file-ban.");
           
        } catch (IOException iox) {
View Full Code Here

Examples of syntaxhighlight.SyntaxHighlighter

        parser.setHTMLScriptBrushes(Arrays.asList(new BrushCss(), new BrushJScript()));
        // besides set, you can also add
        parser.addHTMLScriptBrush(new BrushPhp());

        // initialize the highlighter and use RDark theme
        SyntaxHighlighter highlighter = new SyntaxHighlighter(parser, new ThemeRDark());
        // set the line number count from 10 instead of 1
        highlighter.setFirstLine(10);
        // set to highlight line 13, 27, 28, 38, 42, 43 and 53
        highlighter.setHighlightedLineList(Arrays.asList(13, 27, 28, 38, 42, 43, 53));
        try {
          // set the content of the script, the example.html is located in the jar: /syntaxhighlighter/example/example.html
          highlighter.setContent(new String(readResourceFile("/syntaxhighlighter/example/example.html")));
        } catch (IOException ex) {
          LOG.log(Level.SEVERE, null, ex);
        }

        // timer end
View Full Code Here

Examples of syntaxhighlighter.parser.SyntaxHighlighter

   */
  public SyntaxHighlighterParser(Brush brush) {
    if (brush == null) {
      throw new NullPointerException("argument 'brush' cannot be null");
    }
    syntaxHighlighter = new SyntaxHighlighter();
    this.brush = brush;
    htmlScript = false;
    htmlScriptBrushesList = new ArrayList<Brush>();
  }
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.