Comments
Comments are chunks of text in your program code that are ignored by the compiler, but are there to remind you how the code works.
BlitzMax support single line comments using the ' character:
Print "Comment Test" 'Everything from the apostrophe (') character to the end of line is ignored.
Multiline comments are also supported, using Rem and End Rem:
Rem
Blitzmax rocks!
An example of a multiline comment...
Multiline comments are useful for documenting and maintaining your code
End Rem
BlitzMax also allows you to build documentation into your code using 'bbdoc' comments:
Rem
bbdoc: Execute BBDoc demo
returns: A message from BBDocTest!
about:
An example of using bbdoc to add documentation to your code.
End Rem
Function BBDocTest$()
Return ["Surprise!","Hi!","What's Up?"][Rnd(3)]
End Function
Such documentation can be later be extracted from the program code by tools such as BMK