Indentation in Code Window

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
lupuss
Posts: 25
Joined: Sat Nov 27, 2010 10:24 am

Indentation in Code Window

Post by lupuss » Sat Dec 18, 2010 11:49 am

My code window does not always indent automatically the way it is usually done by other programming frameworks. Inserting a CR after the end statement of the handler has no effect. The lines are still messy. Is there a setting or a trick to make it indent properly e.g. in nested ifs with extended switch statements inside?

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

Re: Indentation in Code Window

Post by jmburnod » Sat Dec 18, 2010 1:06 pm

Hi Lupuss,

On mac i indent my code with tabkey

Best

Jean.Marc
https://alternatic.ch

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

Re: Indentation in Code Window

Post by AndyP » Sat Dec 18, 2010 4:50 pm

Hi Lupuss,

Highlight your code and hit the Tab key.
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

lupuss
Posts: 25
Joined: Sat Nov 27, 2010 10:24 am

Re: Indentation in Code Window

Post by lupuss » Sun Dec 19, 2010 1:13 am

Thank you Jean and Andy.

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”