Page 1 of 1
Comment blocks
Posted: Tue Mar 16, 2004 11:28 pm
by Dare2
Comment blocks, along the lines of /* .. */, would be nice.
Useful for blocking out, restoring chunks of code as well as documenting code.
Posted: Tue Mar 16, 2004 11:52 pm
by jack
you can use CompilerIf and CompilerEndIf, for example, the following code will be ignored by PB
Code: Select all
CompilerIf 0
;
; ------------------------------------------------------------
;
; PureBasic - Date example file
;
; (c) 2002 - Fantaisie Software
;
; ------------------------------------------------------------
;
Date$ = FormatDate("%yyyy/%mm/%dd", Date())
Time$ = FormatDate("%hh:%ii:%ss", Date())
MessageRequester("PureBasic - Date Example", "Date: "+Date$+Chr(10)+"Time: "+Time$, 0)
CompilerEndIf
Posted: Tue Mar 16, 2004 11:59 pm
by Kale
Or select a load of text in the IDE then hit Ctrl-B
