Re: [OT?] Formatting of AS code on Apple pages
Re: [OT?] Formatting of AS code on Apple pages
- Subject: Re: [OT?] Formatting of AS code on Apple pages
- From: Sander Tekelenburg <email@hidden>
- Date: Thu, 29 Apr 2004 03:09:16 +0200
At 13:29 -0500 UTC, on 2004/04/28, Jim Witte wrote:
>
On the Apple Applescript pages, where it has sample code, it uses a
>
spacer graphic of variable width to get horizontal spacing right. It
>
can't use non-breaking-spaces, because the font size might through it
>
off. It can't use <pre> because then it looses formatting.. Has
>
anyone thought of a way you could effectively add 'tab-stops' to the
>
HTML spec, to deal with this short of a spacer graphic?
Oh yes, most definitely... :( Every day millions insist on using the wrong
tool for all sorts of things. Especially for Web publishing. Apple's
webdesigners are no exception.
HTML was designed to structure content, CSS to suggest presentation of that
content. It works extremely well:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"
http://www.w3.org/TR/html4/strict.dtd">
<HTML lang="AppleScript">
<HEAD>
<TITLE>The right tool for the right job</TITLE>
<STYLE>
.indent {margin-left: 2em}
</STYLE>
</HEAD>
<BODY>
tell application "Mozilla"<BR>
<DIV CLASS="indent">
tell document 1<BR>
<DIV CLASS="indent">
Get URL "
http://www.w3.org/Style/CSS/"<BR>
</DIV>
end tell<BR>
</DIV>
end tell<BR>
</BODY>
</HTML>
--
Sander Tekelenburg, <
http://www.euronet.nl/~tekelenb/>
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.