Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Fortran Editor question

George_Kardomateas
807 Views
I was using Digital Virtual Fortran and the its Editor had a very nice feature, namely a green line at the place of the continuation character (sixth character from the left), this made Fortran source file editing very easy. This line was all over the file. I just switched to the Intel Fortran and it only shows the green line when the continuation character is typed. Is there an options setting to enable this green line over all the statement lines?
0 Kudos
6 Replies
Steven_L_Intel1
Employee
807 Views

No, sorry. Microsoft significantly changed the source editor coloring interface and that option is not available to us.

I will make the comment that if you're writing new code, using free-form source is strongly recommended. Then you wouldn't need to worry about columns.

0 Kudos
j_clausen
Beginner
807 Views

I frequently use Fortran in conjunction with Abaqus. Abaqus demands that the Fortran source is fixed form (at least for a low level user as myself. It may be possible to use free form, but that needs changing of settings at a skille level above mine). A quote from the Abaqus Documentation: "The compilation of FORTRAN files using Fortran 90 freeform specifications is not supported by default".

SoI also miss the green line.

j_clausen

0 Kudos
jimdempseyatthecove
Honored Contributor III
807 Views

May I assume that since you can see the green line when a continuation line is present, that the problem is keeping track of spaces in order to place the continuation character in the correct column. If this assumption is correct, then consider making macro and hot key that when pressed it inserts a new-line followed by indent of proper number of spaces and then enters the next sequence digit for continuation character. When pressedat the end of the current line it enters a new line followed by proper indent and continuation character. When pressed in the middle of a line, it breaks and continues the line at the current position. And when pressed at the beginning of the line it test for at beginning of line and if so, it converts the line to to a properly indented continuation line. And you can make a variation that re-sequences the continuation characters (digits). e.g. when a series of continuation lines are selected when the hot key is pressed then the continuation digits are resequenced.

VS enhancement like this macro should be optionally installable and available with IFV.

Jim Dempsey

0 Kudos
George_Kardomateas
807 Views
Thank you, Abhi, I will try and see if it works.
0 Kudos
George_Kardomateas
807 Views
Thanks, Jim, this is a good idea!
0 Kudos
Reply