Which editor do you use (with auto indent) ?

Are you using LiveCode to create server scripts or CGIs?

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
bangkok
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 928
Joined: Fri Aug 15, 2008 7:15 am

Which editor do you use (with auto indent) ?

Post by bangkok » Thu May 30, 2013 10:14 am

Until now, I was using a simple text editor to create LC Server pages.

But adding more and more HTML tags, CSS, especially with framework like Bootstrap etc...it quickly becomes difficult to read the code. It's even a real mess.

Which solution do you use ? I've tried NotePad++ with TinyHTML plug in. It's a good start (to auto indent and colorize HTML tags).

Is there a tool that could "recalculate" automatically all the indentation for HTML and LC codes, within the same document ?

Mark
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 5147
Joined: Thu Feb 23, 2006 9:24 pm
Contact:

Re: Which editor do you use (with auto indent) ?

Post by Mark » Thu May 30, 2013 1:45 pm

Hi,

I have the following options:
1) my own little script editor, which allows me to export a script directly to a file
2) TextWrangler
3) Aptana

Kind regards,

Mark
The biggest LiveCode group on Facebook: https://www.facebook.com/groups/livecode.developers
The book "Programming LiveCode for the Real Beginner"! Get it here! http://tinyurl.com/book-livecode

icouto
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 92
Joined: Wed May 29, 2013 1:54 am
Location: Sydney, Australia

Re: Which editor do you use (with auto indent) ?

Post by icouto » Fri May 31, 2013 4:21 am

I heartily recommend Sublime Text. It is a very, very polished tool, that you can customise to your heart's content, until it perfectly fits your workflow. It is cross-platform, and has a huge loyal following - like LiveCode. You can download and use it for free, but the developer asks you to please pay for it, if you decide to keep it.

If you do download it, I also strongly recommend you do the series of tutorials for it, freely available at NetTuts.

Apologies for not posting direct links to any of these - apparently, my account level in the forum does not allow me to post links... :(

bangkok
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 928
Joined: Fri Aug 15, 2008 7:15 am

Re: Which editor do you use (with auto indent) ?

Post by bangkok » Fri May 31, 2013 7:45 am

Thanks Icoutu, SublimeText looks indeed very interesting !

https://tutsplus.com/lesson/package-control/

This video explains what to do.

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

Re: Which editor do you use (with auto indent) ?

Post by FourthWorld » Fri May 31, 2013 7:25 pm

I use the LiveCode IDE, but mostly because I have a preference for separating my HTML and LiveCode rather than mixing them.

Folks coming from a PHP background often enjoy mixing LiveCode scripts withing their HTML templates. There's certainly nothing wrong with that (arguably some advantages for some thing), and LC makes it easy to do.

But I tend to lay out my pages or page elements first, then write code to assemble them, so I'll usually author my pages in any HTML editor and use simple function placeholders in them, with the functions defined in a separate library.

This approach not only lets me use different editors optimized for each side of that, but also helps separate my code and content in ways I've found useful for ongoing enhancement.
Richard Gaskin
LiveCode Community Liaison

LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply

Return to “CGIs and the Server”