Norm.Campbell
Joined: 31 Aug 2007 Posts: 66
|
Posted: Wed Feb 13, 2013 1:21 pm Post subject: formatting legacy code |
|
|
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 |
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7925 Location: Salford, UK
|
Posted: Wed Feb 13, 2013 4:30 pm Post subject: |
|
|
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. |
|