Home
Blog
Contact
Mailing List
Software
Blog
Twitter
|
<< 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:
|