Closed Dubz closed 5 years ago
I opened a file and screenshotted it for reference.
Not closing at the beginning of a new line
Closing at the beginning of a new line.
See: https://www.autohotkey.com/docs/Language.htm#comments In addition, the / and / symbols can be used to comment out an entire section, but only if the symbols appear at the beginning of a line as in this example:
This is not entirely true, though. I just made a simple script with the whitespace included before the closing comment tag (*/
), and it ran just fine. Tested with multiple spaces, and tabs. All work no problem.
Anything else before the closing */
tag, apart from whitespace, is not allowed/doesn't work. This is including an extra asterisk (ex. **/
)
See below for example:
/**
* This is a comment block test
*
* Loreum ipsum yada yada
*/
MsgBox, Hello world!
Add any character that is not a space or tab before */
, and the message box won't show when ran.
If you add comment blocks using /.../ and the closing */ is not at the beginning of a new line, the highlighting makes everything after it appeared commented out.