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 

formatting legacy code

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



Joined: 31 Aug 2007
Posts: 66

PostPosted: Wed Feb 13, 2013 1:21 pm    Post subject: formatting legacy code Reply with quote

I just loaded Fortran 90 code last accessed in 2002 into Plato3.

What I see is something like the following:

if ( ndq .gt. 0 ) then

close ( ndu )

rewind ndq

call gsfind ( iin, itt, iot, non, ndq, ndu, non, non )

end if

That is, the first character for the indented code (3 spaces) appears in column 6 (though the code compiles OK, so in fact the compiler is recognising the code the way it should be).

Sometime back, when faced with this, I loaded the code into a legacy version of Plato2, made a trivial change, and saved the file. When I then loaded the code into Plato3, all the formatting had been restored.

Is there any simple way of making my code appear the way it should in Plato3?

I no longer have a version of Plato2
Back to top
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Wed Feb 13, 2013 4:30 pm    Post subject: Reply with quote

If there are tab characters in the file then the appearance will depend on the tab settings in Plato but FTN95 always assumes a tab as 8 characters.

The current version of Plato is about 4.6.
As I recall, there have been options to view the tab characters and to set the tab size for a long time.

Look in the Options dialog under Text Editor.
Back to top
View user's profile Send private message AIM Address
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