Re: AppleScript formatting & web page size
Re: AppleScript formatting & web page size
- Subject: Re: AppleScript formatting & web page size
- From: "Robert J. Rust" <email@hidden>
- Date: Tue, 30 Oct 2001 09:28:54 -0600
>
on 10/29/01 4:18 PM, Robert J. Rust at email@hidden wrote:
>
>
> I wrote a fairly long script for use in our computer labs and
>
> spent a fair amount of time coming up with a way to put it into HTML with
>
> syntax formatting intact. What I ended up with was a 264K HTML document.
>
> The .txt version of the same is 16K. Stylesheets may help with this, but
>
> even then I suspect a huge difference in size.
>
>
>
> Robert
>
>
You could try the <pre> </pre> tags. just put in your plain text formatted
>
document between these tags and it should stay formatted as it is in the
>
text document.
>
>
HTH
>
>
Jeff Knight
>
email@hidden
>
My point in that message was that formatting on the web may not be a good
idea. By formatting the scripts we post on the web, they end up
considerably larger. The increase in file size may offset the gains of the
coloring. Totally aside from the download time, there's the likelihood of
the visitor's browser choking on all that HTML. After all, not everybody
has a broadband connection and a machine with 256MB of RAM.
Robert
Programmer - A red-eyed, mumbling mammal capable of conversing with
inanimate objects.