Is there any way to make a block of code into comments in FORTRAN at once? Something like /* and */ in C for example, or some editor capability.
Multipline Line Comments in Fortran?
try this at the begining
goto 87
block of code
87 continue
assuming the block of code is compilable,
Reply:most editors like emacs or vim will allow you to comment an entire region.
Reply:Fortran and Fortran 77 are not a free-format languages, but have a very strict set of rules for how the source code should be formatted. That is why the comment character (c, * or sometimes !) must be present in the first column of each line which is a comment. Fortran 90 is a little bit more modern, but still is not possible to have block comments.
blue flowers
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment