Did anyone know this about the editor?

Started by Creator, Tue 15/07/2008 12:26:24

Previous topic - Next topic

Creator

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:

Code: ags

/* This is a block
of comments */


and that would be the same as:

Code: ags

// 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?

TheMagician

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.

scotch

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.

AGA

Whoa. Thanks for the tip. This is really going to make my code annotation a lot more effective!

SMF spam blocked by CleanTalk