default text editor

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
seaniepie
Posts: 154
Joined: Wed Sep 07, 2011 10:56 am

default text editor

Post by seaniepie » Mon Mar 30, 2015 4:53 pm

How do we set a default text editor for the scripting? It asks me for it every time I click the 'Script' button.

Thanks
Pi

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

Re: default text editor

Post by jacque » Tue Mar 31, 2015 6:51 pm

There's no UI for it. Ken Ray had a plugin that would set an external editor but it's deprecated now and unsupported. If you just want to get rid of the nagging, I believe the option is stored in LC preferences so deleting the prefs file should get rid of it. I've never had it ask me, so I'm not sure how it triggers or why it thinks you need an external editor.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

trevordevore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1005
Joined: Sat Apr 08, 2006 3:06 pm
Location: Overland Park, Kansas
Contact:

Re: default text editor

Post by trevordevore » Tue Mar 31, 2015 7:17 pm

@jacque - LCB scripts are best edited with an external editor as there is no editor built in.

@seaniepie - I think what I did on OS X was set the editor for an LCB file to BBEdit using the Finder info window. I then specified that Finder should open all LCB files using BBEdit.
Trevor DeVore
ScreenSteps - https://www.screensteps.com

LiveCode Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode
LiveCode Builder Repos - https://github.com/search?q=user%3Atrevordevore+topic:livecode-builder

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

Re: default text editor

Post by jacque » Tue Mar 31, 2015 7:28 pm

Oops, sorry. I didn't notice what forum we were in.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

livecodeali
Livecode Staff Member
Livecode Staff Member
Posts: 192
Joined: Thu Apr 18, 2013 2:48 pm

Re: default text editor

Post by livecodeali » Wed Apr 01, 2015 11:21 am

I have filed a bug report and submitted a fix for this. The rule (once that is merged) is:

1) If there is an existing system association for the lcb file, the ide will use that to open it.
2) If there isn't, or the above fails to open the file for some reason then the ide will check to see if there is a preference set.
3) If there isn't, or the 'preferred' editor fails to open the file then the ide will ask for an application to open with.
4) if 3 is successful, the ide will change the 'preferred' editor to the one selected.
5) otherwise the ide will log an error.

Post Reply

Return to “LiveCode Builder”