Silverfrost Forums

Welcome to our forums

formatting legacy code

13 Feb 2013 12:21 #11547

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

13 Feb 2013 3:30 #11548

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.

Please login to reply.