You still can use : as a divider but it requires a space and I would not recmend it for comments. Just use one of the following:
// I'm a comment
` I'm a comment
' I'm a comment
rem I'm a comment
remstart
I'm a comment block
I can go on until the rem+end is called
Useful to comment out blocks of code too
remend
Here's a brief example of colon use
SYNC RATE 60: SET WINDOW ON
CLS
PRINT "Press the up key..."
WHILE 1 = 1
IF UPKEY() = 1: EXIT: ELSE: CheckKeys(): ENDIF rem This is a comment
ENDWHILE
EXIT PROMPT "You pressed the up key", "Yay, correct!"
END
// --------------------------------------------------------------------------------------------------------------------------
Function CheckKeys()
IF SCANCODE() > 0
PRINT "Wrong key! Press UP!"
ENDIF
IF MOUSECLICK() > 0: PRINT "Why the hell you click the mouse?! Press UP!": ELSE: ENDIF
` BTW: This is a better way to put it:
` IF MOUSECLICK() > 0: PRINT "Why the hell you click the mouse?! Press UP!": ENDIF
` ELSE is redundant without a task
EndFunction
Things to avoid are:
Comments ending in three periods: Rem Blah blah blah...
Fix with: ` eg: Rem Blah blah blah...`
Comments ending with colons (apparently): Rem Some comment:
I haven't encountered this problem though I remember hearing about it so I apply the above fix just to be safe, eg: Rem blah:`
Hope this clears it up