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.

Does your company place comment header blocks claiming copyright/trade secret/ etc. to all source code files?

If so, what is your policy on doing so? Do you claim copyright/trade secret for ALL source code files …

comments copy-protection
How do I implement threaded comments?

I am developing a web application that can support threaded comments. I need the ability to rearrange the comments based …

performance database-design comments query-optimization table-structure
How do I put blocks of PHP code into a PHPDoc DocBlock

I'm playing around with PHPDoc and have realised that you can use markdown to add some formatting to a DocBlock. …

php documentation comments markdown phpdoc
TODOs in Xcode: How to make them stand out?

I am aware of the method of making them warnings, but I want to keep my legit warnings separate from …

xcode comments todo
Is #ifdef MACRO equivalent to a comment

Assuming that MACRO is not defined, are these equivalent #ifdef MACRO Not valid C or C++ code #endif /* Not valid …

c comments c-preprocessor conditional-compilation
Python: '#' Comments after backslash

This doesn't work: something = \ line_of_code * \ # Comment another_line_of_code * \ # Comment and_another_one * \ # Comment etc Neither does …

python comments format multiline backslash
Multiple facebook comment boxes on a single page?

I have three products listed on a single page and I'm looking to add a small comment box to the …

facebook comments xfbml
How to collapse/expand all comment blocks in a file in PhpStorm?

In PhpStorm, what is a quick way to collapse or expand all the comment (doc) blocks in a file? In …

php comments phpstorm collapse docblocks
How do I handle TODO comments in VisualStudio 2010?

I'd like Visual Studio to list all lines having "TODO: " in their beginning (usually after a comment sign which may …

visual-studio visual-studio-2010 comments todo
How do I format a multi-line TODO comment in PyCharm?

I want to add a multi-line TODO comment to my PyCharm project. # TODO: Multiple errors can be wrapped inside an …

python pycharm comments multiline todo