Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [photran] * and C not being recognized as comments

The extension is .for 

I added it under Windows-->Preferences-->General-->Editors--FileAssociations, restarted eclipse and still get the same issue.


For example, below, in the "header" of each .for file there are *'s in column 1 that are black followed by the blue text and black non-text characters, such as numbers and slashes and dashes. All of this should be (green) comments


************************************************************************
*
*     Program: DB_IMSUM
*
*     Author: John Doe
*
*     This program does stuff.
*
* Revisions
* ---------
* 11/25/96 AAA Created.
* 06/20/03 BBB Compile with 32 bit Fortran.
* 12/15/04 BBB Update for long file names
* 03/23/07 BBB Increase length of ARGS for long path names
*
***********************************************************************

And if an apostrophe appears in a comment line then everything after that appears as a string.

Maybe you can load this as a .for file and see if you get the same thing?

There is no problem compiling, but visually this is not fun so it would be really nice to find out how I can get around this :-)

Thanks,
Dan


I have inherited a LOT of Fortran 77 fixed format code that uses mostly '*' in column 1 for comments and occasionally 'C' in column 1 for comments.

What filename extension are you using? By default, .f and .f77 are among those used associated with fixed format files. You can configure this in Window > Preferences (or Eclipse > Preferences on Mac).


Jeff


Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now.

Back to the top