Almost every programming language has their own specific way of putting comments into the code, so let’s recap the various ways so that you can quickly reference your tool’s syntax when you need it.

Visual Basic (VB) and VB.NET Comments ‘an apostrophe at the beginning of the line indicates a commented line

C#, JAVA, and JavaScript Comments // specifies a single line comment /* allows for multiple line comments within the stars */

Structured Query Language (SQL) Comments — double ticks for comments there

HTML and XML Comments

ASP.NET Markup Comments <%-- –%>

Cascading Style Sheet (CSS) Comments /* comments are just like C#/Java and can span multiple lines, but there is no single line comment */”


Author David

More posts by David