Game Development Community

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

About the author

Tom is a programmer and co-owner of Sickhead Games, LLC.


#1
03/06/2003 (9:34 pm)
This is a bit late but...

This method seems to be unsupported. Is there a way to do comment blocks without using // for each line?

Thanks,
-Jeff
#2
03/06/2003 (9:58 pm)
Not to my knowledge
I use a macro in textpad to comment/uncomment multiple lines at once. I find that is the easiest method.
#3
03/08/2003 (10:37 am)
Hmm, I am going to have to look into that. Thanks for the idea.

-Jeff
#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
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.
:)
#6
03/09/2003 (8:00 pm)
Ahh thanks! That works well...


-Jeff
#7
03/09/2003 (8:24 pm)
awesome, thanks a bunch.