Page 1 of 1
Is there a alternative code editor to Livecode's built-in one?
Posted: Thu Apr 30, 2020 4:50 pm
by karmacomposer
Hi all.
I have been programming Livecode for a while now and the built-in editor gives me so many problems, I could pull my hair out.
Specifically, it slows down to a crawl with lots of code or just a couple of scripts open.
Is there an alternative code editor compatible with the Livecode language?
I use Webuilder 2016 but it does not have Livecode syntax editing, code completion, etc for Livecode. It has it for almost everything else.
Even Ultraedit does not have a Livecode plugin.
Right now I use Notepad or Notepad++ just to do simple things like copy and paste or replace, etc.
I appreciate any adivce.
Mike
Re: Is there a alternative code editor to Livecode's built-in one?
Posted: Thu Apr 30, 2020 5:30 pm
by ghettocottage
We made a plugin for atom editor:
https://github.com/livecode/atom-language-livecode
I seem to remember we based it on one that the revigniter guys had for textmate:
https://revigniter.com/
...if you scroll down that page you will see the download bundle.
I made one for gedit if you use Linux:
https://github.com/sierracircle/livecode-gedit-lang
Re: Is there a alternative code editor to Livecode's built-in one?
Posted: Thu Apr 30, 2020 5:35 pm
by dunbarx
Mark Wieder has built one called "GLX2"
Perhaps he will chime in...
Craig
Re: Is there a alternative code editor to Livecode's built-in one?
Posted: Thu Apr 30, 2020 9:06 pm
by bogs
ghettocottage wrote: ↑Thu Apr 30, 2020 5:30 pm
I made one for gedit if you use Linux:
Funnily enough, I *do* use 'nix and actually have gEdit installed. Was that file supposed to go somewhere aside from /usr/share/gtksourceview-3.0/language-specs/? Gedit doesn't seem to list Lc as an option in any of the doc styles after I dumped it there

Re: Is there a alternative code editor to Livecode's built-in one?
Posted: Thu Apr 30, 2020 9:32 pm
by ghettocottage
Looks like Gedit has updated since then...should go into /usr/share/gtksourceview-4/language-specs
I will update the git
Re: Is there a alternative code editor to Livecode's built-in one?
Posted: Thu Apr 30, 2020 9:52 pm
by bogs
Don't have that folder heh.
Re: Is there a alternative code editor to Livecode's built-in one?
Posted: Thu Apr 30, 2020 9:57 pm
by ghettocottage
I just recently upgraded to Ubuntu 20.04, so am still slowly updating all of my various projects and such. I was previously using Atom Editor, but it does not want to install on 20.04 for some reason...have not had time to chase it down yet...but Gedit is working so I might just use that for a while.
Re: Is there a alternative code editor to Livecode's built-in one?
Posted: Thu Apr 30, 2020 10:02 pm
by bogs
Well, this is Ubuntu 18.04.4 LTS, so I'd assume it needs to go into the gtk3 source folder. I think what I'll do instead is see about modifying it to work with Geany, unless I can find out where mousepad keeps its dang files.
Re: Is there a alternative code editor to Livecode's built-in one?
Posted: Fri May 01, 2020 12:48 am
by ghettocottage
It worked with Pluma before moving the file to gtksourceview-4 folder.
..but having Geany working with Livecode syntax would be cool!
Re: Is there a alternative code editor to Livecode's built-in one?
Posted: Fri May 01, 2020 10:35 am
by bogs
I think so, unlike the basic text editors, Geany is able to call the compilers of various languages and even add switches, so for instance, you don't have to leave it to issue the Lc -ui switch. Of course, we will first have to figure out how to clearly define that switch
I did a brief q and d test with it, pulling the 'lisp' file from the
location and putting it into
Code: Select all
/home/bogs/.config/geany/filedefs/
then changing the keywords to Lc's list which I lifted from your file.
Syntax highlighting of course worked instantly, and as far as my brief test went, correctly. Setting the file extensions were no problem as well, of course I only had about 10 mins at the time, so I can't say I completely nailed down the compiling etc. features, but looking at lisps setup it doesn't look like it will be overly difficult.
I also think lisp might not have been my best choice for a test file, it's structure is extremely simple heh, if I knew which of the various scripting languages were closest to Lc's nature, I'd have shot for one of those instead.
As far as gedit goes, after playing with it a while they really have changed it around. It used to be a very nice little tool, easy to get to things, etc, but if I had to make a choice between that and say, mousepad (or even leaf) in it's current state, it wouldn't even be close. In either of the other 2, you have a full menu bar, not that stupid drop down garbage with a dozen flyouts that don't even fly out. Slow as heck too. It was removed this morning after my 6th trip through that 'feature' alone
*Edit - I just realized that people may not know what Gedit used to look like, this was about the design point I liked it at -

- Write me sometime...
Re: Is there a alternative code editor to Livecode's built-in one?
Posted: Fri May 01, 2020 12:41 pm
by AndyP