Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Creator on Tue 15/07/2008 12:26:24

Title: Did anyone know this about the editor?
Post by: Creator on Tue 15/07/2008 12:26:24
If anyone has used C++ before, they should know that you can add blocks of comments stretching over more than one line by using this text:


/* This is a block
of comments */


and that would be the same as:


// This is a block of comments


I just found out that AGS is the same. You can make comments stretch over multiple lines by using the slashes and asterisks.

Did anyone notice this before me?
Title: Re: Did anyone know this about the editor?
Post by: TheMagician on Tue 15/07/2008 12:34:36
I *think* this is fairly common knowledge.
The fact that I use it myself means that I must have found it in the manual somewhere, because I learned programming and AGS from scratch.
I've also seen it in a lot of modules.
Title: Re: Did anyone know this about the editor?
Post by: scotch on Tue 15/07/2008 16:22:07
I don't think it's mentioned in the manual but yeah, a lot of people use block comments, it's something people would naturally try if they come from other languages. I expect you picked it up from modules or forum examples, TheMagician.
Title: Re: Did anyone know this about the editor?
Post by: AGA on Tue 15/07/2008 17:18:35
Whoa. Thanks for the tip. This is really going to make my code annotation a lot more effective!