I have seen /* block comment */ for block commenting in C++. I know I can do line commenting by using ! or c, but is there any option for block commenting in Fortran?
23
votes
7 Answers
19
votes
19
votes
12
votes
If your FORTRAN compiler supports preprocessor macros then a popular method is to use (What exactly does an #if 0 ..... #endif block do?)
#if 0
...
Your comments ...
go here ...
...
#endif
5
votes
A line with a c, C, *, d, D, or ! in column one is a comment line; except that if the -xld option is set, then the lines starting with D or d are compiled as debug lines. The d, D, and ! are nonstandard.
If you put an exclamation mark (!) in any column of the statement field, except within character literals, then everything after the ! on that line is a comment.
3
votes
-2
votes
Do the following:
- Go to the first line among all the multiple block lines to comment and place the typing position to the first column,
- Press Alt+Shift in the keyboard,
- Select all the lines to comment,
- Unpress Alt+Shift from the keyboard
- Type C/c It will work then . Check that out and tell me in the comments. Cheers!
-5
votes