PowerTip: Use PowerShell Multiple-Line Comments

Doctor Scripto

Summary: Use Windows PowerShell multiple-line comments in your script or from the console.

Hey, Scripting Guy! Question How do you type a multiple-line comment?

Hey, Scripting Guy! Answer Begin the comment with the <# tag, and end the comment with the #> tag:

<#

 this is a comment

            on several

            different

            lines

 #>

0 comments

Discussion is closed.

Feedback usabilla icon