Silverfrost Forums

Welcome to our forums

Comment lines in Plato3 V4.20

30 Apr 2009 10:11 #4495

In comment lines starting with the letter C, operators, keywords and alternative keywords are coloured [color=red:7fd1d84b71]red[/color:7fd1d84b71] or [color=blue:7fd1d84b71]blue[/color:7fd1d84b71] and not black like the rest of the text line.

30 Apr 2009 10:48 #4496

Plato needs to know if it is a fixed format or free format file. In this case I assume that Plato thinks it is a free format file whilst you intend it to be fixed format.

From the Tools menu, select Options and then Text Editor and Language settings.

Under Fixed format Fortran you will see a list of file extensions that Plato assumes are fixed format. Add your file exension to this list.

30 Apr 2009 12:36 #4498

I had done that. Added ';.for' (without quotes).

Anyway my posting was just a curious observation. This new behaviour was not in Plato V4.1, and in fact the comment lines were then in [color=green:d296987b20]green[/color:d296987b20].

30 Apr 2009 3:03 #4500

More information. If I choose only fixed format FORTRAN the file types used are not correctly displayed (the free-format ones are still there with tab position 4). If I ignore this and do not add my file type '.for', Plato3 displays the correct colours and accepts my source files.

The .ini file correctly lists the fixed-format file types (Filters=.for;.f;.ins) and tab position (6).

Plato V4.1 shows the same, or similar, behaviour. I don't know whether this is a recent change. I didn't notice it before.

30 Apr 2009 5:03 #4501

I am confused. .for should be available by default. Try removing the entry from the ini file.

1 May 2009 7:56 #4504

I am happy to leave it, because it works despite what the Language form says. I also notice that if I click on the text, 'Fixed format fortran', rather than just the tick box, the correct source file types appear only to revert to the Free format versions when I re-open the Language form.

1 May 2009 2:37 #4517

I wonder if you have misunderstood the idea.

The name of the file should have a .for extension. For example, myfile.for. Plato, as well as FTN95, will understand this as a fixed format Fortran file.

Please login to reply.