avatar
t*o
1
hello,
Is there any simple way to comment out a large part of code in fortran instead
of typing 'c' at the begin of each line?
like in c++, we can use /* ... */
thanks a lot!!!
avatar
t*p
2
try goto LABEL

instead

【在 t*****o 的大作中提到】
: hello,
: Is there any simple way to comment out a large part of code in fortran instead
: of typing 'c' at the begin of each line?
: like in c++, we can use /* ... */
: thanks a lot!!!

avatar
s*l
3
some editors do that.

【在 t********p 的大作中提到】
: try goto LABEL
:
: instead

avatar
t*o
4
Thanks
could you tell me which editor? and how to do it? thanks

but I don't want to compile those lines

【在 s*****l 的大作中提到】
: some editors do that.
avatar
f*r
5
emacs

【在 t*****o 的大作中提到】
: Thanks
: could you tell me which editor? and how to do it? thanks
:
: but I don't want to compile those lines

avatar
a*s
6
I know you can even do it in CVF on windows, not to say vi,emacs.

【在 t*****o 的大作中提到】
: Thanks
: could you tell me which editor? and how to do it? thanks
:
: but I don't want to compile those lines

avatar
s*l
7
xemacs or emacs can certainly do that provided that you give the
correct .f or .f90 extension. You can select the code and
comment it out

【在 t*****o 的大作中提到】
: Thanks
: could you tell me which editor? and how to do it? thanks
:
: but I don't want to compile those lines

avatar
t*o
8
thanks a lot. I got it!

fortran

【在 s*****l 的大作中提到】
: xemacs or emacs can certainly do that provided that you give the
: correct .f or .f90 extension. You can select the code and
: comment it out

avatar
t*o
9
thanks

【在 a******s 的大作中提到】
: I know you can even do it in CVF on windows, not to say vi,emacs.
avatar
t*t
10
If you use emacs to edit the code, you can easily do it.
If your code is .f90, you can find F90 on the menu, so highlight the part
you want to comment out, then point mouse to F90 on the menu, you can
find an option named "Comment-out region", then click it. You can also
easily uncomment it. If your code is .f, you can find fortran on the menu,
then do it in the same way.

instead

【在 t*****o 的大作中提到】
: hello,
: Is there any simple way to comment out a large part of code in fortran instead
: of typing 'c' at the begin of each line?
: like in c++, we can use /* ... */
: thanks a lot!!!

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。