forums.silverfrost.com Forum Index forums.silverfrost.com
Welcome to the Silverfrost forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Indent?

 
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Plato
View previous topic :: View next topic  
Author Message
rogerh



Joined: 02 Nov 2014
Posts: 46
Location: Longmont, CO

PostPosted: Mon Apr 06, 2015 6:48 pm    Post subject: Indent? Reply with quote

I see that Plato will automatically indent things like IF and DO but it will not un-indent when END IF or END DO is encountered.

Why not?

Roger
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


Joined: 21 Feb 2005
Posts: 5043
Location: Salford, UK

PostPosted: Mon Apr 06, 2015 9:06 pm    Post subject: Reply with quote

Basically because Plato does not know what you are about to type.
It is simpler with C++ etc. where you have a single character '}' and Plato can handle this. I suppose Plato could do the un-indent after you finished typing the keyword and I will log this as a possible improvement.

As it is you should press Ctrl+Return to get the un-indent.
Back to top
View user's profile Send private message
rogerh



Joined: 02 Nov 2014
Posts: 46
Location: Longmont, CO

PostPosted: Mon Apr 06, 2015 9:12 pm    Post subject: Reply with quote

Thanks Paul.

It's a separate program in TrueBasic but I didn't see any way to do it in Plato

Roger
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.silverfrost.com Forum Index -> Plato All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group