Questions tagged [comments]
A comment is a programming language construct used to embed non-compiled, programmer-readable annotations in the source code of a computer program.
comments
6,313
questions
0
votes
0
answers
17
views
Should I wrap indented comments at column 80, or extend it due to the indentation? [closed]
Question relating to code comment styling, but this should be language agnostic.
If I have a comment beginning on a deep indentation, do I still wrap it at column 80, or extend it to account for the ...
0
votes
0
answers
10
views
vscodium python multiline comment how to use # instead of docstring?
Linux Debian 12, wondering how to replace the behavior of vscodium that if I select multiple lines and want to get them as comment it add a docstring instead adding an hashtag to eachline.
Doctring ...
0
votes
1
answer
54
views
Get go doc to follow a type alias and function variable
I am developing a package that has nested packages to assist in organizing my code. My top level package exposes some "aliases" of common functionality nested inside of the other packages ...
0
votes
1
answer
38
views
I want copy the paragraph that a comment has been added to in Word and put into an Excel table
i found a really simple macro in LinkedIn, from 'Harriet. L', to look at the Comments in a Word document and create an Excel table sowing the 'page, author, comment text & date created' for each ...
0
votes
0
answers
14
views
Customize WordPress "Comment-function" or other built-in WordPress function with approval option
The idea: I was asked to recreate this sort of petition but in WordPress.
Basically, the users should be able to add their name (1), their e-mail (2) and upon ticking both check marks (3) that their ...
0
votes
0
answers
22
views
Facebook Graph API: Unable to Retrieve "from" Field in Live Video Comments if users without any app roles
I'm using the Facebook JavaScript SDK to retrieve the comments for a live video (with the page access token), using the following Graph API request:
GET /{live-video-id}/comments
However, I'm ...
0
votes
2
answers
61
views
Add clickable link while adding comments to vscode
I wanted to refer to links while writing comments for the code that describes the method used. It could be anything like images or a URL that explains a concept.
For eg: /**
*../../../Array/loops/2024-...
0
votes
1
answer
45
views
Visual Studio, typing a comment /* etc */ very odd behaviour in aspx files
My Visual Studio 2022 community edition is behaving unusually when entering comments inside .aspx files, that should look like this.
/*
* This is a comment
* This is another line
*
*/
I've tested ...
0
votes
0
answers
32
views
VBA - Search & Display : result doesn't take comment/URL into account
I've been working on a dynamic search bar in Excel, following this video, and it works fine.
=IF(I3="","No match",FILTER(Table1,ISNUMBER(SEARCH(I3,Table1[Sujet])),"No match&...
1
vote
2
answers
197
views
Why are there redundant slashes in comment headers in c or c++ "*//**"
I often see:
/**************************************************************************//**
* some comments
*****************************************************************************/
Why not:
/...
0
votes
1
answer
40
views
ObjectMapper - YAML parse - ignore comments
YAML file example
---
# Author : John Doe
# Updated Date: 6/21/2024 4:23:22 PM
# Status: Deployed.
name: "stack overflow"
version: 5
While parsing the yaml file, How to ignore the comment ...
1
vote
1
answer
86
views
How to remove comments from the scala code
Any ideas how to remove comments from the scala code so that:
Nested multi line or single line comments are removed.
Comments inside string literals are not removed.
Code can have single and triple ...
1
vote
4
answers
126
views
Trying to write a C program to remove all comments from a C program
I am trying to make a program to remove all comments in a C program. I believe this is a common exercise in most C books.
The code is as follows:
#include <stdio.h>
#include <conio.h>
#...
-1
votes
2
answers
83
views
What is the difference between double asterisks and single asterisk in a comment in java (Or IntelliJ)? [duplicate]
As the attached images show, if I put two asterisks after the slash in a comment, the comment will be rendered in green. If there's only one, the comment would be rendered in grey. I bet this is a ...
1
vote
1
answer
35
views
Can I create an eslint comment that is interpreted as an error?
We have branch protection and pre-push hooks in our system that force us to have no eslint errors or warnings in order to push to main/master.
Sometimes, while debugging something, I will modify a ...