Is there a alternative code editor to Livecode's built-in one?

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
karmacomposer
Posts: 361
Joined: Wed Apr 27, 2011 2:12 pm

Is there a alternative code editor to Livecode's built-in one?

Post by karmacomposer » Thu Apr 30, 2020 4:50 pm

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

ghettocottage
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 366
Joined: Tue Apr 10, 2012 9:18 am

Re: Is there a alternative code editor to Livecode's built-in one?

Post by ghettocottage » Thu Apr 30, 2020 5:30 pm

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

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9647
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Is there a alternative code editor to Livecode's built-in one?

Post by dunbarx » Thu Apr 30, 2020 5:35 pm

Mark Wieder has built one called "GLX2"

Perhaps he will chime in...

Craig

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Is there a alternative code editor to Livecode's built-in one?

Post by bogs » Thu Apr 30, 2020 9:06 pm

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 :?:
Image

ghettocottage
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 366
Joined: Tue Apr 10, 2012 9:18 am

Re: Is there a alternative code editor to Livecode's built-in one?

Post by ghettocottage » Thu Apr 30, 2020 9:32 pm

Looks like Gedit has updated since then...should go into /usr/share/gtksourceview-4/language-specs

I will update the git

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Is there a alternative code editor to Livecode's built-in one?

Post by bogs » Thu Apr 30, 2020 9:52 pm

Don't have that folder heh.
Image

ghettocottage
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 366
Joined: Tue Apr 10, 2012 9:18 am

Re: Is there a alternative code editor to Livecode's built-in one?

Post by ghettocottage » Thu Apr 30, 2020 9:57 pm

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.

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Is there a alternative code editor to Livecode's built-in one?

Post by bogs » Thu Apr 30, 2020 10:02 pm

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.
Image

ghettocottage
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 366
Joined: Tue Apr 10, 2012 9:18 am

Re: Is there a alternative code editor to Livecode's built-in one?

Post by ghettocottage » Fri May 01, 2020 12:48 am

It worked with Pluma before moving the file to gtksourceview-4 folder.

..but having Geany working with Livecode syntax would be cool!

bogs
Posts: 5435
Joined: Sat Feb 25, 2017 10:45 pm

Re: Is there a alternative code editor to Livecode's built-in one?

Post by bogs » Fri May 01, 2020 10:35 am

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 :D

I did a brief q and d test with it, pulling the 'lisp' file from the

Code: Select all

/usr/share/geany/filedefs/
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 :evil:

*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 -
gEdit.png
Write me sometime...
Image

AndyP
Posts: 615
Joined: Wed Aug 27, 2008 12:57 pm
Location: Seeheim, Germany (ex UK)
Contact:

Re: Is there a alternative code editor to Livecode's built-in one?

Post by AndyP » Fri May 01, 2020 12:41 pm

Trevor Devore also provided a plugin for Sublime Text which works extremely well.

Source https://github.com/trevordevore/livecode-sublimetext

video https://www.youtube.com/watch?v=RkhrHdah0zY&t=19s
Andy Piddock
https://livecode1001.blogspot.com Built with LiveCode
https://github.com/AndyPiddock/TinyIDE Mini IDE alternative
https://github.com/AndyPiddock/Seth Editor color theming
http://livecodeshare.runrev.com/stack/897/ LiveCode-Multi-Search

Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”