NerdyHearn
Home
Blog

Contact
Mailing List

Software

Active Directory Products
Object Compare
Permission Compare

IPhone Products
Calls To Calendar
SMS To CSV
SMS To Gmail
Voicemail To Gmail

Sites
DocuTerminal
How Long For Me
My Music To Me
SaveMySerials
TypeCount

Blog
Twitter

NerdyHearn - Blog


<< Back To All Blogs

Comments in 25 Programming Languages

Monday, May 12th, 2008

Ever wanted to know how to use code comments in 25 different programming languages? Now you have the chance...
leave a comment if I missed a code comment in your language of choice.

Enjoy!

Assembly
# Comment

ASP
' Comment

Bash
# Comment

Batch (DOS)
REM Comment

C/C++
// Comment
/* Comment */

CSS
/* Comment */

F#
/// Comment

Haskell
! Comment

HTML
<!-- Comment -->

Java
// Comment
/* Comment */

Javascript
// Comment
/* Comment */

LaTex
% Comment

Lua
-- Comment
--[[ Comment ]]--

MySQL
// Comment
-- Comment
/* Comment */

Pascal
{ Comment }

Perl
# Comment

PHP
// Comment
# Comment
/* Comment */

PostgreSQL
-- Comment
/* Comment */

Python
# Comment
""" Comment """

Ruby
# Comment

SQL Server
-- Comment
/* Comment */

SQLite
-- Comment
/* Comment */

Tcl
# Comment

Visual Basic
' Comment

XML
<!-- Comment -->

Comments

Ferruccio said on Tuesday, May 13th, 2008 @ 9:50 AM

The assembly language one really depends on your assembler. I haven't written any assembly code in a long time, but the assembler I used started comments with a semicolon(;) not a hash(#).

Eric said on Monday, May 12th, 2008 @ 8:35 PM

Ahem.... Ada tyvm

http://www.adaic.com/standards/05aarm/html/AA-2-7.html

As:
-- Comment
-- Ala SQL

Add A Comment

Name:


URL:


Email Address: (not public, used to send notifications on further comments)


Comments:



Enter the text above, except for the 1st and last character:


NerdyHearn - Latest tech news relating to C#, ASP.NET, SharePoint, PHP, general development, and more. DocuTerminal - Online Filing Cabinet solution. Scan, search and archive your paper documents. SaveMySerials - Protect yourself from theft, fire, natural disasters and more by recording your serial numbers My Music To Me - Stream your subsonic music collection to your Sonos wireless system TypeCount - Count how often you type across different computers! ServrTrackr - Monitor your SSL certificates, website uptime, and DNS configurations