Home > Development, Visual Studio > Comment out – any way you can

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

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: