I know by putting ! at the beginning of a line it will turn into comment.
But how can I do that for a lot of lines?
Of course I don't want to do that by putting ! line by line.
I'm using Fortran Powerstation.
I know by putting ! at the beginning of a line it will turn into comment.
But how can I do that for a lot of lines?
Of course I don't want to do that by putting ! line by line.
I'm using Fortran Powerstation.
On
There are editors out there that do it. I use Notepad ++. Bear in mind that this will place a "!" at the beginning of each line, but it allows you to select your block of text and do it all at once.
If you are referring to HTML-style commenting where you enclose your block with <-- /--> tags, I don't believe that is possible, but it has been a while since I worked with Fortran.
There are no block comments in Fortran.
Read the manual of your text editor or IDE and find there how to comment and uncomment several lines at a time. In my editor (Kate) it is Ctr+D and Ctrl+Shift+D, for example. Your editor will be different.
In your Visual Studio try to press Ctrl + /.