[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: Re: [MacPerl] Experimental External Editor Interface available



Matthias writes:
: >There's a BBEdit menu in the MacPerl application, and I can open a file,
: >but I can't compile or run from BBEdit, nor can I run the BBEdit script
: >from MacPerl without a separate Open... dialog.
: 
: Right. All of these belong in the BBEdit package (anyone willing to do it?
: Otherwise I can do it myself).

There's one there already, i.e. a BBEdit extension that lets you execute the
Perl being edited in MacPerl, so BBEdit can act as an external editor. Works
fine for me with MacPerl 5.0.5r1m. It's in the 'Contributed BBEdit
Extensions' on the BBEdit 4.0 CD. There's no other info about where else it
could be found in the notes (copied below) . But I can't imagine any Perl
programmers not having upgraded BBEdit to version 4.0 - the Perl-savvy syntax
colouring alone makes it a very worthwhile upgrade.

John

----------------------------------------------------------------------

This BBEdit extension allows the running of MacPerl scripts from BBEdit.
MacPerl
is a Macintosh port of the Perl programming language by Matthias Neeracher.
Information about MacPerl is available at
   <http://err.ethz.ch/members/neeri/macintosh/perl-qa.html>

This extension sends the text in the active BBEdit window to MacPerl to be
executed as a Perl script. If a Perl script executed by the extension writes
output to stdout or stderr then a new BBEdit window is created and the output
is
put into the new window after the script is finished executing (any stderr
text
is first followed by the stdout text). MacPerl must be running before the
extension is executed, otherwise an alert is displayed. Typing the command
and
period keys together will terminate the extension, although the Perl script
started by the extension will still be running.

To use the extension put it in the "BBEdit Extensions" folder that is in the
same
folder as the BBEdit application. If BBEdit is running the extension will
only
appear in the Extensions menu after BBEdit is quit and restarted.

The extension is a 68K BBEdit extension and should work on a 68K or PPC
Macintosh
with MacPerl 4 or 5, and BBEdit or BBEdit Lite (I've only tried it with
version
3.5.2 of BBEdit).

This extension is freeware. If you have any questions or comments, or would
like
a copy of the source code, please let me know.

Of related interest is the BBEdit Script Extension for MacPerl written by
Matthias Neeracher. This allows Perl scripts to be saved as BBEdit extensions
by
MacPerl. There is a Perl interface to BBEdit that allows MacPerl scripts
saved as
BBEdit extensions to use BBEdit extension callbacks. Unfortunately, the last
time
I checked (using the 07Feb96 version of the BBEdit Script Extension with
MacPerl
5.0.6) the BBEdit extension callbacks did not work on 68K Macintoshes (they
do
work on PPC Macintoshes). The BBEdit Script Extension for MacPerl is
available
from
    <ftp://err.ethz.ch/pub/neeri/MacPerl/MPBBEdit_07Feb96.sit.bin>

Brad Hanson
bhanson@avalon.net, BradH5@aol.com


Version History

April 15, 1996 - Version 1.0

- Pressing command-period will stop the extension.

- Added alerts for more informative error messages.

- Added version resource.


January, 1996 - Version 0 (actually no version number)

I submitted this initial version to the MacPerl mailing list.

--
John Blackburne - programmer, writer, consultant, trainer
Perl, AS, QD3D and more at http://www.hk.super.net/~johnb