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.

Can I use a hash sign (#) for commenting in PHP?

I have never, ever, seen a PHP file using hashes (#) for commenting. But today I realized that I actually can! …

php comments
visual studio C++ toggle comment ? comment while not whole line is selected?

2 questions actually : 1) shortcut to toggle comment on selected lines ? Available on all iDEs I used starting with notepad++ 2)the ctrl-k, …

c++ visual-studio-2010 comments toggle
In VS Code, disable error "Comments are not permitted in JSON"

I sometimes use Visual Studio Code to edit JSON files that include comments. VS Code displays an error saying, "Comments …

json visual-studio-code comments
Commenting/Uncommenting a block of Python code in TextWrangler

Searched this a bit before asking. There is another thread that seems to be asking about this same issue in …

python comments textwrangler
HTML comments within comments?

Is there a way to comment multiple lines... which already have some comments in them? i.e. <html> &…

html multiline comments
How do I comment attributes inside an XML tag?

Is it possible to comment one or several attributes inside an XML tag? Something like /* */ from C. I have tried …

xml comments xml-comments xml-attribute
Python: skip comment lines marked with # in csv.DictReader

Processing CSV files with csv.DictReader is great - but I have CSV files with comment lines in (indicated by …

python csv comments
How do I comment in Power Query M?

Is there a way to comment M code / comment out lines or blocks of code?

comments powerquery m
Geany text editor commenting

Is there a way to highlight a section of code to be commented out in one swoop using geany text …

comments text-editor geany