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 

Comment lines in Plato3 V4.20

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



Joined: 14 Mar 2005
Posts: 9

PostPosted: Thu Apr 30, 2009 11:11 am    Post subject: Comment lines in Plato3 V4.20 Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Thu Apr 30, 2009 11:48 am    Post subject: Reply with quote

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
View user's profile Send private message
TonyGrundy



Joined: 14 Mar 2005
Posts: 9

PostPosted: Thu Apr 30, 2009 1:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
TonyGrundy



Joined: 14 Mar 2005
Posts: 9

PostPosted: Thu Apr 30, 2009 4:03 pm    Post subject: Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Thu Apr 30, 2009 6:03 pm    Post subject: Reply with quote

I am confused. .for should be available by default.
Try removing the entry from the ini file.
Back to top
View user's profile Send private message
TonyGrundy



Joined: 14 Mar 2005
Posts: 9

PostPosted: Fri May 01, 2009 8:56 am    Post subject: Reply with quote

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
View user's profile Send private message
PaulLaidler
Site Admin


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

PostPosted: Fri May 01, 2009 3:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
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