Home > Misc Development > Commenting Syntax

Commenting Syntax

I was asked the other day how to comment in HTML.  I know HTML, but I hardly ever comment in it.  So I thought I would post the syntax for commenting in several programming languages.

C#


//  This is a comment

/* Multiple
    line comment */

/// <summary>XML comments on single line</summary>
/** <summary>XML comments on multiple lines</summary> */

 

VB.NET

' This is a comment
REM This is a comment
''' <summary>This is an XML comment</summary>

 

HTML

<!-- This is a comment -->

 

TRANSACT SQL

select "hello" -- this is a comment
/* This is a muti-line comment */

 

RUBY

# This is a comment
=begin
This is a multi-
line comment
=end

 

VFP

* This is a comment
USE customer    && This is an inline comment

 –

Categories: Misc Development
  1. No comments yet.
  1. No trackbacks yet.
You must be logged in to post a comment.