View Single Post
  #5  
Old 03-15-2009, 07:11 AM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
Quote:
Originally Posted by salesman View Post
Really?
If I placed /* at the top of a script, everything appears to be commented out in the script window (serverside AND clientside)...but I haven't tested if the clientside portion still works.

I know that // comments out the entire line, but it doesn't change the fact that the block comment appeared to be closed but in fact wasn't
Yes, in the script window the syntax highlighting will show that the whole script is commented out, but that's because it's just syntax highlighting. It doesn't really have anything to do with the script itself.

As a good rule of thumb I usually start a line like
HTML Code:
/*
  Comments here.
*/
So each one gets their own line.
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote