Your favourite text editor for working with livecode

Want to talk about something that isn't covered by another category?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
bbalmerTotalFluency
Posts: 51
Joined: Mon Apr 06, 2020 1:19 pm
Location: Thailand
Contact:

Your favourite text editor for working with livecode

Post by bbalmerTotalFluency » Thu Jul 29, 2021 3:18 pm

Hello:

I know this forum is stacked out with cool types. I'm interested in whether the cool kids use the built in IDE (if you do then I will be happy to follow your lead) or do you like to make script only stacks and use some other text-editor? Not looking for theory. Looking for what people who write more code than I do - actually do when they are coding. If "yes" to external text editor then which is your favourite?

Thanks in advance.

Bruce
These days an amateur programmer

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

Re: Your favourite text editor for working with livecode

Post by FourthWorld » Thu Jul 29, 2021 4:58 pm

I'm not cool so this may not apply, but FWIW I almost always use binary stacks, and edit their scripts within the IDE.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Klaus
Posts: 13806
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Your favourite text editor for working with livecode

Post by Klaus » Thu Jul 29, 2021 5:19 pm

Yep, same here!

bbalmerTotalFluency
Posts: 51
Joined: Mon Apr 06, 2020 1:19 pm
Location: Thailand
Contact:

Re: Your favourite text editor for working with livecode

Post by bbalmerTotalFluency » Thu Jul 29, 2021 5:23 pm

Blimey! I recognise you two from these forums and you are more full time and cooler than I am (at least with regard to LC ;-) so I find these two answers VERY interesting. Thank you.

There is a lot to like about the editor - I explore leaving it from time to time but generally don't prefer what I find. I thought it might be a lack of cool, but I see I am in good company.

I had received / hallucinated the impression that script only stacks and the separation of the binary stacks and script only stacks was considered to be a best practice of sorts. I'm not wrong AGAIN am I?

stam
Posts: 2634
Joined: Sun Jun 04, 2006 9:39 pm
Location: London, UK

Re: Your favourite text editor for working with livecode

Post by stam » Thu Jul 29, 2021 5:54 pm

You may want to check out Atom - you can install an integration for LiveCode that will style text, indent it and spot errors; just won't run the code (obviously...). For longer scripts it's much smoother than the built-in script editor

I'd like to use BBEdit more, but while it has support for LCB, it won't autocomplete double quote parentheses etc, won't indent text and doesn't hilite errors. Plus the (dark) colour scheme in Atom looks a lot better imo.

However while I was initially using a lot of script only stacks early on, i must say i'm pretty much binary only now, so that means copy pasting a lot between LC and Atom - i pretty much only do that when i want to really focus on a long script or do extensive corrections/replacements.

jmburnod
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2718
Joined: Sat Dec 22, 2007 5:35 pm
Location: Genève
Contact:

Re: Your favourite text editor for working with livecode

Post by jmburnod » Thu Jul 29, 2021 6:25 pm

I always use livecode ide
Best
Last edited by jmburnod on Fri Jul 30, 2021 5:44 pm, edited 1 time in total.
https://alternatic.ch

bbalmerTotalFluency
Posts: 51
Joined: Mon Apr 06, 2020 1:19 pm
Location: Thailand
Contact:

Re: Your favourite text editor for working with livecode

Post by bbalmerTotalFluency » Fri Jul 30, 2021 1:38 am

Thank you for weighing in.

Bernard
Posts: 351
Joined: Sat Apr 08, 2006 10:14 pm
Location: London, England

Re: Your favourite text editor for working with livecode

Post by Bernard » Fri Jul 30, 2021 11:04 am

FourthWorld wrote:
Thu Jul 29, 2021 4:58 pm
I'm not cool so this may not apply, but FWIW I almost always use binary stacks, and edit their scripts within the IDE.
Me too. I use the editor of LC IDE, re-factoring into Script-only Stacks (SoS). These are periodically committed to my Fossil vcs (both SoS and non-text elements get committed).

For me there is only one piece of functionality I find is missing from the IDE editor - when there are hundreds of handlers in a SoS it can take minutes to find what I'm looking for and that breaks my flow. So I have a tree plugin which changes to show me the handler signatures of whatever is the active script in the IDE editor. The handlers are grouped based on functionality (the grouping is determined by a comment in each handler). That grouped handler list can also be filtered based on some key word. Clicking on the signature of a handler in the tree pastes that signature into the cursor location of the editor. This way it takes seconds to find the relevant handler and I'm still in the flow: move mouse to tree, click on disclosure triangle for that area of functionality, glance down handlers, click, go back to script editor and continue typing.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9286
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Your favourite text editor for working with livecode

Post by richmond62 » Fri Jul 30, 2021 11:13 am

The only time I have ever used an external 'something' was during the initial 3 years of my Devawriter Pro
because I had switch statements with up to 3000 cases, so I used Apple/Clarisworks just because I found
it gave me more space than the inbuilt scriptEditor.

But at all other times I have used the inbuilt scriptEditor as I think it is marvellous.

bwmilby
Posts: 438
Joined: Wed Jun 07, 2017 5:37 am
Location: Henrico, VA
Contact:

Re: Your favourite text editor for working with livecode

Post by bwmilby » Fri Jul 30, 2021 1:23 pm

I do a bit of editing in Atom. No need to manually copy/paste though. Take a look at ScriptTracker if you would like to edit your scripts from binary stacks in an external editor. It also allows easy tracking of script changes in a stack using Git.
Brian Milby

Script Tracker https://github.com/bwmilby/scriptTracker

stam
Posts: 2634
Joined: Sun Jun 04, 2006 9:39 pm
Location: London, UK

Re: Your favourite text editor for working with livecode

Post by stam » Fri Jul 30, 2021 1:35 pm

I will definitely check that out, thank you Brian

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

Re: Your favourite text editor for working with livecode

Post by Mikey » Fri Jul 30, 2021 2:09 pm

More recent versions of the script editor are better than the older ones in a lot of ways. I use it regularly, but I prefer sublimeText for LC scripts. It has many more features than the script editor, it is much more customizable and extensible (and much faster). It launches way faster than Atom, and Trevor's very clever python script auto-reloads your scripts in LC whenever you save them in ST, meaning that ST is a great way to upgrade the script editor.
Obviously if you are going to just use binary stacks and not behaviors, then the script editor is your tool.
Atom is prettier and more elegant/refined than ST is, to be sure.

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

Re: Your favourite text editor for working with livecode

Post by jacque » Fri Jul 30, 2021 8:23 pm

I use the IDE editor almost always. I rarely use script-only stacks, except for client work where they've already been implemented by someone else. The main reason to use script-only stacks is for compatibility with git, which only tracks text files, and script-only stacks were first implemented when LC started using git. There is no "best" way, only the way that works best for your own work flow.
stam wrote:
Thu Jul 29, 2021 5:54 pm
I'd like to use BBEdit more, but while it has support for LCB, it won't autocomplete double quote parentheses etc, won't indent text and doesn't hilite errors. Plus the (dark) colour scheme in Atom looks a lot better imo.
You can do most of these things in BBEdit, which is my text editor of choice. In Preferences/Completion select "Insert matching delimiters while typing" and "Surround selected text when typing matching delimiters".

You can sort of auto-indent; once you've typed a tab all subsequent lines retain that tab position. You do have to delete to move back one tab stop though so it's semi-manual. You can set the tab stop width in Preferences/Editor Defaults. Dark mode is available in Preferences/Appearance and you can edit the color scheme there too. You're right it doesn't know about parsing errors though.

I have set up custom Clippings to use LC's commenting keyboard shortcuts in BBEdit.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Post Reply

Return to “Off-Topic”