- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
In Java I remember youcould comment out entire blocks of code (with //... //), in MatLab, you can select a block of code and comment it out all at once (it inserts a '%' in front of each line).
Is it possible in CompaqVisFortran (6.1), or in Fortran in general, to comment out blocks of code? I'm spending alot of time typing then erasing: ! downarrow, ! downarrow, ! downarrow, etc.
Thank you for your ideas and help,
-J
Message Edited by UCDavisPrgmer on 02-23-2005 11:11 AM
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you need this while debugging then you can use "conditional compile" writing
!DEC$ IF (.False.)
before the block, and
!DEC$ END IF
after the block.
Sabalan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Something like this?
http://www.codeproject.com/macro/solesby.asp
Needs to be adjusted to fortran comment syntax, should not be a problem.
http://www.codeproject.com/macro/solesby.asp
Needs to be adjusted to fortran comment syntax, should not be a problem.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page