Top "Comments" questions

A comment is a programming language construct used to embed non-compiled, programmer-readable annotations in the source code of a computer program.

Remove comments from C/C++ code

Is there an easy way to remove comments from a C/C++ source file without doing any preprocessing. (ie, I …

c++ c comments
Adding comments to .htaccess

Why does this work: RewriteRule (.+)/$ $1 and this work: RewriteRule (.+)/$ $1 [L] #bla bla bla but this doesn't work: RewriteRule (.+)/$ $1 #bla bla …

apache .htaccess comments
Should Javadoc comments be added to the implementation?

Is it correct practice to add Javadoc comments in the interface and add non-Javadoc comments in the implementation? Most IDEs …

java interface comments javadoc
How do you document your PHP functions and classes inline?

I know there are many different standards for PHP code inline documentation. Here's what I mean by inline documentation, and …

php documentation comments
What is the shortcut to comment multiple lines with /* ... */ in Aptana Studio 3 on Mac?

Here are the few shortcuts to comment code, which works great on Windows. Ctrl-/ to add or remove // for a …

keyboard-shortcuts comments aptana
How to comment in XSLT and not HTML

I'm writing XSL and I want to make comments throughout the code that will be stripped when it's processed, like …

xslt comments
What is the preferred method of commenting javascript objects & methods

I'm used to atlas where the preferred (from what I know) method is to use xml comments such as: /// <…

javascript comments
Swift: Understanding // MARK

What is the purpose of writing comments in Swift as: // MARK: This is a comment When you can also do: // …

xcode swift comments
What is the meaning of #XXX in code comments?

I have seen this a lot in code, even vim marks it as a special case. #TODO and #FIXME are …

comments
Multiline Comment Workarounds?

I (sort of) already know the answer to this question. But I figured it is one that gets asked so …

r comments r-faq