Page 1 of 1

default text editor

Posted: Mon Mar 30, 2015 4:53 pm
by seaniepie
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

Re: default text editor

Posted: Tue Mar 31, 2015 6:51 pm
by jacque
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.

Re: default text editor

Posted: Tue Mar 31, 2015 7:17 pm
by trevordevore
@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.

Re: default text editor

Posted: Tue Mar 31, 2015 7:28 pm
by jacque
Oops, sorry. I didn't notice what forum we were in.

Re: default text editor

Posted: Wed Apr 01, 2015 11:21 am
by livecodeali
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.