Desktop IDE for server scripts

Are you using LiveCode to create server scripts or CGIs?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
MrWizard.
Posts: 32
Joined: Tue Apr 17, 2012 3:31 am

Desktop IDE for server scripts

Post by MrWizard. » Fri Jul 19, 2013 4:12 am

It appears the livecode desktop IDE is not designed to develop LC server based scripts. Am I missing something?

I started using Textwrangler on the MAC but the syntax coloration etc is off. Has anyone developed a Textwrangler config that is LC aware?

Is there a preferred desktop IDE which is LC aware? BBEdit, Dreamweaver, etc

It seems silly that I have to textwrangler edit/FTP save/browser test to cycle through constantly.

I am doing CGI mode so it's LC scripts dynamically generating HTML based of data queries from the local SQL server

Thought ?

E
Last edited by MrWizard. on Mon Jul 22, 2013 5:04 am, edited 1 time in total.

edgore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 197
Joined: Wed Jun 14, 2006 8:40 pm

Re: Desktop IDE for server scripts

Post by edgore » Fri Jul 19, 2013 9:06 pm

Right now pretty much the only option is to develop in the desktop IDE, then port that to the server. Look at the Techniques for Developing for Server thread a bit further down to see what I am doing, and some of the issue I run into.

I agree that an IDE for developing (and debugging) scripts running against the server engine would be great.

MrWizard.
Posts: 32
Joined: Tue Apr 17, 2012 3:31 am

Re: Desktop IDE for server scripts

Post by MrWizard. » Mon Jul 22, 2013 1:34 am

One cool option I have found is to use Bare Bones editor TextWrangler (http://www.barebones.com/products/textwrangler/) which is free in the Mac store for download.

This tool has a programmer's extension option;
http://www.barebones.com/products/textw ... ammer.html

This option allows for syntax coloring and function navigation by identifying your language module with “Codeless Language Modules”

Blue Mango has has created a BBEdit language module provides syntax coloring for the Revolution language
(http://www.bluemangolearning.com/revolu ... ge-module/) which can also be used for TextWrangler.

Steps;
1. Download TextWrangler http://ash.barebones.com/TextWrangler_4.5.3.dmg
2. Download the TextWrangler manual at http://ash.barebones.com/TextWrangler_User_Manual.pdf
3. Download Blue Mango's BBEdit language module http://bluemangolearning.com/download/r ... Module.zip
4. Install Blue Mango's BBEdit language module in the TextWrangler extension directory;
"~Application Support/TextWrangler/Language Modules"
5. Start TextWrangler and go to the Preferences section (see TextWrangler manual chapter 10). Go to the “Installed Languages” and add "Revolution" to activate Blue Mango's BBEdit language module. Go to "Custom Extension Mappings" and map the extensions you use (.lc, .irev, etc) to Revolution
6. Changes will take effect the next time you launch TextWrangler.

Hope this helps!

E

edgore
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 197
Joined: Wed Jun 14, 2006 8:40 pm

Re: Desktop IDE for server scripts

Post by edgore » Mon Jul 22, 2013 8:43 pm

I use textwrangler when I can (i.e. for my own personal stuff), alas for work I need to use windows.

Joerg
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 21
Joined: Sun Dec 20, 2009 12:35 am

Re: Desktop IDE for server scripts

Post by Joerg » Wed Sep 04, 2013 3:58 pm

I use the great framework revigniter to develop and deploy livecode applications. This framework is developed and maintained by Ralf Bitter. In addition, Ralf offers a TextMate bundle for livecode http://revigniter.com/accessory. I personally use sublimetext editor (http://www.sublimetext.com) in which you can import these TextMate files. More over you can configure sublimetext also as ftp client.

Have a look at both of them.


Greetings

Jörg

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9960
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Desktop IDE for server scripts

Post by FourthWorld » Wed Sep 04, 2013 4:33 pm

The flexibility of LiveCode Server offers many different ways of working, and FWIW I've found it helpful in my own projects to include relatively little code in the pages themselves, usually limited to function calls for routines defined in a library stack, e.g.:

Code: Select all

<html><body>[[SomeFunctionName()]]</body></html>
This lets me use any HTML editor to lay out the page, and lets me use any LiveCode editor for the handler definitions - best of both worlds.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Klaus
Posts: 13977
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Desktop IDE for server scripts

Post by Klaus » Wed Sep 04, 2013 5:14 pm

Unfortunately Trevors LC lib for BBEdit always crashes my TextWranlger
when I try to set the conding to "Revolution" :(

Greg O.
Posts: 21
Joined: Wed Jun 18, 2014 4:02 am

Re: Desktop IDE for server scripts

Post by Greg O. » Wed Nov 11, 2015 2:04 am

At least as of BBEdit 11.1.4 the BlueMango revolution module is incompatible. Does anyone know another?

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

Re: Desktop IDE for server scripts

Post by ghettocottage » Wed Nov 11, 2015 5:49 pm

Atom Editor is coming along nicely: https://atom.io/

Peter B has been maintaining a package for atom for developing Livecode Server: https://atom.io/packages/language-livecode

Post Reply

Return to “CGIs and the Server”