Extensions Script Editing

LiveCode Builder is a language for extending LiveCode's capabilities, creating new object types as Widgets, and libraries that access lower-level APIs in OSes, applications, and DLLs.

Moderators: LCMark, LCfraser

Post Reply
Mikey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 755
Joined: Fri Jun 27, 2008 9:00 pm

Extensions Script Editing

Post by Mikey » Wed Feb 04, 2015 10:05 pm

Can we have a preference to use something else (like textWrangler) as the text editor for the scripts, or is there a plan to have the LC script editor be the editor of the future for extensions and widgets?

benjibeaumont
Livecode Staff Member
Livecode Staff Member
Posts: 53
Joined: Tue Jun 03, 2008 10:31 am

Re: Extensions Script Editing

Post by benjibeaumont » Thu Feb 05, 2015 3:13 pm

Hi Mike,

The mac users in the office are using TextWrangler for editing. One of our engineers (Ali) wrote a coloriser for it which can be found in the git repo here:

https://github.com/runrev/livecode/blob ... lder.plist

If you put that in language modules directly in text wrangler you'll get a pretty lice LiveCode Builder editing experience. The editing plugin targets the source file when testing/building packages so all you have to do is click save in TextWrangler and then hit the test button in the widget plugin and it'll run your plugin in the IDE. Pretty neat.

Regards,

Ben
Ben Beaumont | Runtime Revolution

Mikey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 755
Joined: Fri Jun 27, 2008 9:00 pm

Re: Extensions Script Editing

Post by Mikey » Thu Feb 05, 2015 3:16 pm

When you click "edit script", though, you get textEdit. I'd like to launch textWrangler. I guess that should be a bug report. Going there now...

benjibeaumont
Livecode Staff Member
Livecode Staff Member
Posts: 53
Joined: Tue Jun 03, 2008 10:31 am

Re: Extensions Script Editing

Post by benjibeaumont » Thu Feb 05, 2015 3:20 pm

Hi Mikey,

Good suggestion. I think it opens the default text editor for the system at the moment. So if you set text wrangler as your default for .mlc files it should work.

Warm regards,

Ben
Ben Beaumont | Runtime Revolution

Mikey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 755
Joined: Fri Jun 27, 2008 9:00 pm

Re: Extensions Script Editing

Post by Mikey » Thu Feb 05, 2015 3:51 pm

So for anyone else who is new to this, here's what you do to import the syntax colorization file to textWrangler:

1) in your browser, retrieve https://github.com/runrev/livecode/blob ... lder.plist FOR ME, I had to right-click on the link and do a "Save Link As...", otherwise I was taken to GitHub and got to stare at the code.
2) mv ~/Downloads/LiveCodeBuilder.plist ~/Library/"Application Support"/TextWrangler/"Language Modules"/


Now when you open a widget or library in textWrangler, it will be colorized. If you don't know squat about gitHub, I'd also create an account and ask to be notified when the file is updated.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9837
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Extensions Script Editing

Post by FourthWorld » Thu Feb 05, 2015 4:08 pm

External editors are a good workaround for now, but I'm assuming we'll be able to edit Builder scripts in the IDE before release, yes?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

benjibeaumont
Livecode Staff Member
Livecode Staff Member
Posts: 53
Joined: Tue Jun 03, 2008 10:31 am

Re: Extensions Script Editing

Post by benjibeaumont » Thu Feb 05, 2015 4:13 pm

Hi Richard,

We'll integrate LiveCode Building scripting into the IDE at some point in the future, but for now we'll continue to rely on external editors. It's an early technology that will continue evolving for some time. We'll be improving the plugin to make the development experience smoother in the short term.

Warm regards,

Ben
Ben Beaumont | Runtime Revolution

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7237
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Extensions Script Editing

Post by jacque » Thu Feb 05, 2015 11:09 pm

The plist works in BBEdit too. :)
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Mikey
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 755
Joined: Fri Jun 27, 2008 9:00 pm

Re: Extensions Script Editing

Post by Mikey » Fri Feb 06, 2015 4:23 am

I'm going with you already knew that TextWrangler is just the free version of BBE.

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7237
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: Extensions Script Editing

Post by jacque » Fri Feb 06, 2015 4:57 am

Yup, but thought I'd mention it just in case. Swami N. had most of a working plist for BBEdit but got stuck in a couple of places, I'm going to drop him a note about this.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

peter-b
Posts: 182
Joined: Thu Nov 20, 2014 2:14 pm
Location: LiveCode Ltd.

Re: Extensions Script Editing

Post by peter-b » Mon Feb 09, 2015 2:46 pm

For those of you who use Emacs, the next release will include an Emacs mode for LiveCode Builder programs.

Only syntax highlighting so far.
LiveCode Open Source Team — @PeterTBBrett — peter.brett@livecode.com

Post Reply

Return to “LiveCode Builder”