The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
I knew about /* */ for C#. That multi-line comment style has been picked up by numerous languages because it can be so helpful to block comment code.
I didn't know about REM still being accepted, but I guess that makes sense.
Here is VBA code from an Excel spreadsheet I just opened up to try it out.
Rem this is a test
Rem you shouldn't really be seeing this' these are the comments that vba seems to expect
MsgBox ("rem alert")
That's funny too, because in Excel the Rem statements turn green (as you said) and they are recognized as comments, but the code parser here on the site doesn't seem to recognize those statements as comments.
You can turn off the auto-generated single asterisk in tools/settings.
".45 ACP - because shooting twice is just silly" - JSOP, 2010 ----- You can never have too much ammo - unless you're swimming, or on fire. - JSOP, 2010 ----- When you pry the gun from my cold dead hands, be careful - the barrel will be very hot. - JSOP, 2013
I never used a REM statement in my batch/command scripts. I use :: for this purpose. REM still parses the entire line while :: is a label and the parser stops at the end of the label. You can't jump to :: so it works as a REM while at the same time being significantly faster.