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
default text editor
-
- VIP Livecode Opensource Backer
- Posts: 7230
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: default text editor
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
HyperActive Software | http://www.hyperactivesw.com
-
- VIP Livecode Opensource Backer
- Posts: 1005
- Joined: Sat Apr 08, 2006 3:06 pm
- Location: Overland Park, Kansas
- Contact:
Re: default text editor
@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.
@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
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
-
- VIP Livecode Opensource Backer
- Posts: 7230
- Joined: Sat Apr 08, 2006 8:31 pm
- Location: Minneapolis MN
- Contact:
Re: default text editor
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
HyperActive Software | http://www.hyperactivesw.com
-
- Livecode Staff Member
- Posts: 192
- Joined: Thu Apr 18, 2013 2:48 pm
Re: default text editor
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.
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.