Re: formatting AS source for web
Re: formatting AS source for web
- Subject: Re: formatting AS source for web
- From: John W Baxter <email@hidden>
- Date: Wed, 1 Aug 2001 19:51:26 -0700
At 15:52 -0400 8/1/2001, Bill Cheeseman wrote:
>
> Does anybody know of a good way to format AppleScript source code for the
>
> web (including retaining syntax hilighting)? The only way I've found so far
>
> is to copy and paste from Script Editor into MS Word, then save as HTML.
>
> Unfortunately Word creates excessively bloated HTML documents. I'm hoping
>
> there's a better way.
>
>
For years I have been using an AppleScript I wrote, which takes advantage of
>
the superlative scripting capabilities of the Style scriptable text editor.
>
Basically, you copy a formatted AppleScript from Script Editor or whatever
>
to the clipboard, then you run my script. It pastes the formatted script
>
into Style, then adds appropriate html tags to preserve the formatting, then
>
places the html text back on the clipboard. From there, you paste into your
>
html editor. It's very fast.
>
>
You'll find my script, 'Script2HTML', in the "Scripts" chapter of The
>
AppleScript Sourcebook.
>
>
You'll find examples of its output throughout the "Scripts" chapter.
I know of a way, but I can't talk about it. Except that I was authorized
to use it in public, as in
<
http://homepage.mac.com/jwbaxter/ASsample.html>
which has been posted to this list before during the great list server
character mangling outrage.
<
http://homepage.mac.com/jwbaxter/ASsample2.html>
shows the work of Bill's Script2HTML on the same script.
--John
--
John Baxter email@hidden Port Ludlow, WA, USA