PrettyPrint in WAHtmlDocument

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

PrettyPrint in WAHtmlDocument

Karsten Kusche
Hi,

i've had a look at WAPrettyPrintedDocument and was surprised that it
didn't actually produce formatted HTML Source, but an HTML Document that
contained HTML Formatted Source.

Are there plans to add a PrettyPrintingDocument so that the HTML that is
sent to the browser looks better? Firebug already formats the HTML into
a tree, but if you want to add breakpoints to inline JavaScript, you're
a bit screwed, as the whole document is one single line.

Maybe the it could be something along the lines of PTDevelopmentLibrary
and PTDeploymentLibrary but for the HtmlDocument like
WADevelopmentHtmlDocument and WADeploymentHtmlDocument.

Kind Regards
Karsten


--
Karsten Kusche - Dipl. Inf. - [hidden email]
Georg Heeg eK - Köthen
Handelsregister: Amtsgericht Dortmund A 12812

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: PrettyPrint in WAHtmlDocument

Lukas Renggli
> Are there plans to add a PrettyPrintingDocument so that the HTML that is
> sent to the browser looks better?

There are no plans, but it should be easily possible. The problem is
that pretty printing HTML changes the way it is displayed in
web-browsers.

> Firebug already formats the HTML into a
> tree, but if you want to add breakpoints to inline JavaScript, you're a bit
> screwed, as the whole document is one single line.

You can set breakpoints using the Firebug Command Line API:

    http://getfirebug.com/commandline.html

Cheers,
Lukas

--
Lukas Renggli
http://www.lukas-renggli.ch
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: PrettyPrint in WAHtmlDocument

Karsten Kusche

> There are no plans, but it should be easily possible. The problem is
> that pretty printing HTML changes the way it is displayed in
> web-browsers.
>    

ah, right.

> You can set breakpoints using the Firebug Command Line API:
>
>      http://getfirebug.com/commandline.html
>    

thx for the info, didn't know that one.

Kind Regards
Karsten



> Cheers,
> Lukas
>
>    

--
Karsten Kusche - Dipl. Inf. - [hidden email]
Georg Heeg eK - Köthen
Handelsregister: Amtsgericht Dortmund A 12812

_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
Reply | Threaded
Open this post in threaded view
|

Re: PrettyPrint in WAHtmlDocument

Julian Fitzell-2
In reply to this post by Lukas Renggli
On Mon, Oct 26, 2009 at 3:38 AM, Lukas Renggli <[hidden email]> wrote:
>> Are there plans to add a PrettyPrintingDocument so that the HTML that is
>> sent to the browser looks better?
>
> There are no plans, but it should be easily possible. The problem is
> that pretty printing HTML changes the way it is displayed in
> web-browsers.

Yeah, the earliest versions of Seaside 2.x did do this but it was a
nightmare trying to avoid putting whitespace in places that impacted
the layout. We eventually removed it; it no longer seemed necessary
anyway once browsers could display formatted source.

Julian
_______________________________________________
seaside mailing list
[hidden email]
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside