Comment out – any way you can


Always, when you want to comment out something, I notice what language I’m in and can never remember what the comment out is for a perticular language…so, I have compiled what I usually work with withing the boundaries of SharePoint.

Hope they can help you as well.

Trasact SQL
Comment out a single line:
—  Comment out this row

Comment out a paragraph:
/* Comment out this
entire paragraph spanning
over several rows */

DOS
Comment out a line:
: Comment out this row
(Yes, the starting ‘:’ is what does it…)

HTML/Java/Asp
Comment out a row or paragraph:
<!– Comment out this row or an entire paragraph/section from start to stop –>

PowerShell
Comment out a single row:
#  Comment out this row

CSS/Stylesheet
Comment out a row or paragraph:
/* Comment out this row or an entire paragraph/section from start to stop */

C#
Comment out a single row:
// Comment out this row

C#
Comment out a row or paragraph:
/* Comment out this row or an entire paragraph/section from start to stop */

VBScript
Comment out a single row:
’ Comment out this row

XML
Comment out a row or paragraph:
<!– Comment out this row or an entire paragraph/section from start to stop –>

Enjoy!

Regards