WinBatch® Technical Support Forum

All Things WinBatch => WinBatch => Topic started by: richardh on October 07, 2013, 08:51:38 AM

Title: WinStudio : Code Block Comment
Post by: richardh on October 07, 2013, 08:51:38 AM
 ???... embarrassing to admit but I've forgotten how to comment a block of code in WinStudio.

Am I mistaken or didn't block commenting use */ or something similar?

Thanks,
RH
Title: Re: WinStudio : Code Block Comment
Post by: Deana on October 07, 2013, 10:34:15 AM
In WinBatch a semicolon indicates the beginning of a comment. All characters to the right of the semi-colon are considered comments, and are ignored.

I recommend using the right-click context menu option to comment blocks of code. First Highlight the lines of code you would like to comment out. Right click in WinBatch Studio then select the menu option. and select 'Code Blocks' | 'Comment Block of Code'.
Title: Re: WinStudio : Code Block Comment
Post by: richardh on October 07, 2013, 11:11:28 AM
lol... maybe I'm mistaken but I thought there used to be a way in older versions of Studio that you could turn commenting on and off with */ or similar for code blocks without it putting a ; in front of each line.

Your suggestion works too.

I was just curious as to if there was a new way to do it in the latest version of Studio.

Thanks