I have used Ecs and it seems good. I'd like to know how to use the method
pretty print to print the Html code indented in the browser. I already know
that you send an Element the method: setPrettyPrint(true), but I'd like to
see some piece of code to know how you use then.

I' d like for example indent this code in Browser:
//
****************************************************************************

Html html = new Html();
html.addElement(new Head()).addElement(
new
Body().setText("#C0C0C0").setBgColor("#496666").setLink("#C0C0C0").setVlink(
"#C0C0C0").addElement(
    new
Table().setName("Table").setWidth(600).setBorder(0).setCellSpacing(10).setCe
llPadding(10).addElement(
        new TR().addElement(
             new
TD().setVAlign("Top").setAlign("Left").setWidth(56).addElement(
                  new
IMG().setSrc("lake.gif").setWidth(32).setHeight(119).addElement(
                       new BR()
                  )//img
            )//td
        )//tr
    )//table
)//body

// if I write now:

html.setPrettyPrint(true);
System.out.println(html.toString());

// But I�d like all the code indented, not only the html tag.
//
****************************************************************************

Thanks, Juan Carlos Alvarez.




--
------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Archives and Other:  <http://java.apache.org/main/mail.html>
Problems?:           [EMAIL PROTECTED]

Reply via email to