Block comments?
by Tom Spilman · in Torque Game Engine · 08/19/2002 (1:29 am) · 7 replies
Are there block comments in Torque scripts like in other languages. For example:
/*
This is a comment
*/
Tom
/*
This is a comment
*/
Tom
About the author
Tom is a programmer and co-owner of Sickhead Games, LLC.
#2
I use a macro in textpad to comment/uncomment multiple lines at once. I find that is the easiest method.
03/06/2003 (9:58 pm)
Not to my knowledgeI use a macro in textpad to comment/uncomment multiple lines at once. I find that is the easiest method.
#4
03/09/2003 (9:27 am)
Daniel, i use textpad, I'd like to see how you use the the macro for it.
#5
1) position your cursor on a line.
2) click record macro.
3) press home, then home again (to make sure you are totally on the LHS of screen. Then type // and press the down arrow.
4) stop your macro recording
5) set the "Default Play mode" as "repeat through selection" and give it a name. (I use "multicomment")
To use it
Just select a bunch of lines and under macros, choose your macro.
whala! all lines commented.
Just do a similiar process to make an uncomment macro.
:)
03/09/2003 (7:46 pm)
ok..1) position your cursor on a line.
2) click record macro.
3) press home, then home again (to make sure you are totally on the LHS of screen. Then type // and press the down arrow.
4) stop your macro recording
5) set the "Default Play mode" as "repeat through selection" and give it a name. (I use "multicomment")
To use it
Just select a bunch of lines and under macros, choose your macro.
whala! all lines commented.
Just do a similiar process to make an uncomment macro.
:)
#7
03/09/2003 (8:24 pm)
awesome, thanks a bunch.
Torque Owner Jeff Trier
Simple Distractions Software
This method seems to be unsupported. Is there a way to do comment blocks without using // for each line?
Thanks,
-Jeff