Task

Show all ways to include text in a language source file
that's completely ignored by the compiler or interpreter.



Related tasks

   Documentation
   Here_document


See also

   Wikipedia
   xkcd (Humor: hand gesture denoting // for "commenting out" people.)


/* This is a comment. */
 
2 + /* Comment between tokens. */ 3
 
"This is a string, /* NOT a comment */."
 
/*
 * A comment can have multiple lines. These asterisks in the middle
 * of the comment are only for style. You must not nest a comment
 * inside another comment; the first asterisk-slash ends the comment.
 */