Comment Block

Blitz3D Forums/Blitz3D Beginners Area/Comment Block

Is there anyway to create a comment block?

Not in the native IDE. Currently, Blitz only supports single-line comments, so to create a comment block, you would have to use an IDE or somesuch that inserted (or removed) semicolons in front of each highlighted line, at your command.

It's been asked for -- several times.

Was one of my first questions / requests when I bought Blitz3D - two years ago... :)

You can comment-out a block of code using:

If 0
;some code here
Endif

Yes, MasterBeaker, I also use this method all the time while debugging. Just don't have any Const definitions inside the If block or Blitz will puke. :)

[a http://ns9.hosteur.com/~blitz3df/click/clic.php?url=http://www.3dgametool.com/visualblitz/visualblitz_demo.exe]VisualBlitz[/a] has a 'comment/uncomment block' option.

thanks for the help