View previous topic :: View next topic |
Author |
Message |
TonyGrundy
Joined: 14 Mar 2005 Posts: 9
|
Posted: Thu Apr 30, 2009 11:11 am Post subject: Comment lines in Plato3 V4.20 |
|
|
In comment lines starting with the letter C, operators, keywords and alternative keywords are coloured red or blue and not black like the rest of the text line. |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7925 Location: Salford, UK
|
Posted: Thu Apr 30, 2009 11:48 am Post subject: |
|
|
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. |
|
Back to top |
|
|
TonyGrundy
Joined: 14 Mar 2005 Posts: 9
|
Posted: Thu Apr 30, 2009 1:36 pm Post subject: |
|
|
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 green. |
|
Back to top |
|
|
TonyGrundy
Joined: 14 Mar 2005 Posts: 9
|
Posted: Thu Apr 30, 2009 4:03 pm Post subject: |
|
|
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. |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7925 Location: Salford, UK
|
Posted: Thu Apr 30, 2009 6:03 pm Post subject: |
|
|
I am confused. .for should be available by default.
Try removing the entry from the ini file. |
|
Back to top |
|
|
TonyGrundy
Joined: 14 Mar 2005 Posts: 9
|
Posted: Fri May 01, 2009 8:56 am Post subject: |
|
|
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. |
|
Back to top |
|
|
PaulLaidler Site Admin
Joined: 21 Feb 2005 Posts: 7925 Location: Salford, UK
|
Posted: Fri May 01, 2009 3:37 pm Post subject: |
|
|
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. |
|
Back to top |
|
|
|