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
9
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
16
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 ...
-1
votes
2
answers
46
views
Add clickable link while adding comments to vscode
I wanted to be more refer to links while writing comments for the code I have written, that explains some description about the method used. It could be anything like images or a url that explains a ...
0
votes
1
answer
37
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
31
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
189
views
Why are there redundant slashes in comment headers in c or c++ "*//**"
I often see:
/**************************************************************************//**
* some comments
*****************************************************************************/
Why not:
/...
0
votes
1
answer
32
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
0
answers
72
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
125
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
74
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
33
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 ...
0
votes
1
answer
36
views
How can I comment several lines at once in VSC?
I tried to comment several lines at once using ctrl+/ and ctrl+shift+A but neither worked. Do you have any idea what the problem might be?
I tried these shortcuts hoping that the lines that I ...
1
vote
1
answer
30
views
Is there any way for vscode to properly comment out React code within return value if comments exists already within it?
Perhaps a solution to this exists that I'm not aware of. Here's some example code:
Here's what happens when I highlight and try to comment out the first and second div:
This gets infuriating in ...
0
votes
1
answer
28
views
Sending a comment by mail in youtrack - including attachements (images, zip etc.)
In Youtrack Helpdesk we had written a small workflow for sending Comments by Email. All works fine, only the images are not correct:
var entities = require('@jetbrains/youtrack-scripting-api/entities')...
0
votes
1
answer
76
views
identify a comment between /* and */ that may contain */ inside of it only if it's inside ""
I am working on a lexical analyser but i am struggling on how to identify the comments as below:
A comment is a sequence of characters (even space) between /* and */; it may not contain the sub-...
0
votes
0
answers
28
views
GitHub PR only me can see Code Review, and no one else
The problem I noticed that no one except the GitHub repo owner (me) can see a code review.
Example PRs:
1
2
On the first screenshot is what I can see (the PR review started), and next (second ...
0
votes
1
answer
28
views
How to Correctly Place Inline Comments in JSX?
I'm learning React and trying to add inline comments within JSX. However, using the usual JavaScript // comments results in a syntax error. Here's a snippet of my code:
const root = ReactDOM....
0
votes
0
answers
25
views
Python eyed3 to EDIT AND/OR ADD Comments of MP3 audio file - NOT WORKING
I have around 200 MP3 Audio files. Some of these MP3 Audio files already have statement/text/information (whatever you want to call it) under "Comments" section of the file. I want to write ...
0
votes
0
answers
18
views
how do I use toggle comment in HTML in my vscode? (for windows)
even on pressing ctrl + / , the code isn't commented out
even on pressing the required keys , my VS code isn't working as I expect it to. I went to the emmet documentation for help and it worked on ...
0
votes
1
answer
66
views
Doxygen: How to add C comments in \code blocks?
In a Doxygen project, I am getting warnings like
warning: Reached end of file while still inside a (nested) comment. Nesting level 1
Presumably, this is due to C comments in \code blocks. The ...
0
votes
1
answer
30
views
What should I do if IntelliJ IDEA doesn't display images in javadoc?
I introduced the library "project reactor" in my application. Also, I downloaded the source code and Javadoc, but when I looked at its documentation, the image could not be displayed.
What ...
-4
votes
1
answer
41
views
How to fix commenting out my code, I can't use "//" in my code and it is commenting out my code automatically
this is my code and i can't use "//" in url part because it comment out my code
<x-mail::message>
# Introduction
The body of your message.
<x-mail::button :url="https://youtu....
0
votes
0
answers
21
views
Can Doxygen be configured such that it renders function bodies with embedded formulas
I have a project which includes doxygen-style formulas in the source code. They are not only in the documentation before the function header but also in the function body.
Is there a way to configure ...
0
votes
2
answers
639
views
Why does Angular ^17 have problems with my modules, services, etc
Perhaps it was already somewhere in the themes. But I couldn't find a similar question. And the question is why Angular can't find modules and services. I create through "ng g", it seems ...
0
votes
1
answer
63
views
How to highlight comments in several different colors in CLion?
I code on C++ and i would like to have different colors for comments. For example, // todo is be default blue but I also want to have a red one, so i can highlight important stuff
I have looked at all ...
0
votes
1
answer
70
views
Delimited comment in C#
Referring to the below production fragment from C# language standard specification,
fragment Delimited_Comment
: '/*' Delimited_Comment_Section* ASTERISK+ '/'
;
fragment ...
0
votes
0
answers
95
views
How can a Google Sheet Commenter receive all Notifications from all user's comments?
I have a Google sheet that I share with many collaborators who have "Commenter" privileges.
They are notified only if a comment is mentioned with the "@their email" symbol unless ...
0
votes
0
answers
14
views
How to optimize and implement infinite comments through prefetch with django orm?
I'm implementing the comment function and I can leave a big message in the comments. It was easy to implement the function, but it's causing n+1 queries. Please tell me how to solve this problem
...
0
votes
0
answers
26
views
automatic commenting for users on the home page of Twitter
this is my code for automatic commenting for users on the home page of Twitter. The code clicks on the comments, but does not leave the desired comment.I want to set up a code to send a message to ...
0
votes
1
answer
28
views
Forcing "server" comments on Visual Studio
On Visual Studio 2022, I am programming a website in asp.net core 8 C#.
Trying to comment some code via the button in the top bar, I get a "javascript" style comment if I am in javascript ...
0
votes
1
answer
107
views
How to convert a Ruby Hash to YAML and keeping comments?
How to convert a Ruby Hash to YAML and keeping comments?
For the following ruby example
require 'yaml'
h = {
# The garage in Miami
'garage_A' => {
'car_x' => {
# Bought in Gotham
...
0
votes
1
answer
48
views
Disable strike trough comment
In vscode when commenting a block that already contains other comments will display the inner comments as strike-trough lines, also grayed out.
I'm not sure if this was an option or a plugin I've ...
0
votes
1
answer
26
views
What does 'has a SUC' mean?
I was reading some .NET Code and I found the following in DispatcherSynchronizationContext
///
/// Wait for a set of handles.
///
///
/// Critical - Calls WaitForMultipleObjectsEx which ...
3
votes
1
answer
246
views
Can we add image in code comments in VS code
Is it possible to add an image in code comments in VS code? I am working on an angular project. Adding meaningful comments is an important step in the project. Explaining a login in comments in ...
0
votes
0
answers
189
views
Descriptive auto-complete comments for python in Visual Studio Code
In VSCode for C++ by typing /** then "enter" it will produce an 'intelligent' comment block depending on whether it is the file header or a function descriptor. In the following code block, ...
0
votes
0
answers
45
views
Excluding in-code comments from displayed code snippets in Sphinx documentation
In our Python project, we extensively use in-code comments to tag team members or leave important messages for collaboration purposes, like so:
...
with var_model:
# FIXME: #38 make these ...
0
votes
0
answers
44
views
"Attempt to index nil with 'stat'" How to fix that ? (Roblox)
PROBLEM:
Hi The output says:
Players.username.PlayerGui.GameGui.GameController:63: attempt to index nil with 'Stats'
This is my code:
local maxTowers = towerToSpawn.Stats.MaxPlaced.Value
local ...
0
votes
0
answers
19
views
Commenting selected parts in Sublime (plain text)
Sorry, is there is a way to comment out selected text in Sublime while using Plain Text (.txt files)?
I've tried adding hotkey command in Settings -> Key Bindings, but it didn't work, I presume ...
0
votes
1
answer
43
views
Change tags for 'Toggle Block Comment' [duplicate]
Until now, when I used the keybind for Toggle Block Comment inside a .ejs file, it toggled the HTML parts with <!-- ... --> and in script tags with the JS multiline comment /* ... */. But since ...
1
vote
0
answers
41
views
In HTML4.01, are comments enclosed between “<!--” and “-->” or between “<!-- ” and “ -->”?
According to § 3.2.4 of the HTML 4.01 specification,
HTML comments have the following syntax:
<!-- this is a comment -->
<!-- and so is this one,
which occupies more than one line -->
...
0
votes
0
answers
69
views
Tree-sitter: "choice" grammar does not work
I use tree-sitter to write the parser for comment input.
this is the code I write for single line comment parsing:
seq(
"//",
optional(seq($.comment_prefix, optional(/[ ]*/))),
...
0
votes
0
answers
26
views
how to comment each line with a block comment in html [duplicate]
I have a HTML fragment like this:
<!DOCTYPE html>
<html>
<head>
<title>Document</title>
</head>
<body>
<p>text</p>
<!-- -->
...
2
votes
1
answer
1k
views
Is there a way to 'scrape' the comments of an instagram post using some python code?
I'm working on a project right now where I try to get more insights on the things people comment under public Instagram posts. I've tried the module 'instaloader', but I won't get this to work. Does ...
0
votes
1
answer
105
views
Add comment for cell while exporting to excel using openxml library in c#
We are generating excel using openxml library. Recently we added notes to appear as comment while exporting to excel for that particular column header.
I tried to add comments using below methods,but ...
0
votes
2
answers
135
views
How automatically add comments in the start and end of an HTML block using a shortcut
I am looking for a shortcut which can produce HTML comments automatically at the Top and End of the HTML block. Now I am taking too much time to type comments which I want to avoid by using a shortcut....
4
votes
1
answer
184
views
How to insert doc comments using syn?
I have this little snippet that is trying to append comments to a source file.
let mut file: File = syn::parse_str(file_content.as_str()).expect("Failed to parse Rust code");
for ...
0
votes
0
answers
96
views
Facebook comments plugin working but 3rd level replies disappear when submitted
I've implemented Facebook comments on my website here:
https://nonzerosum.games/kindnessequation.html
I'm using the designated script
<div id="fb-root"></div>
<script ...
1
vote
1
answer
50
views
How can i wrap a selected text in custom comments in VSCode?
I would like to be able to write some text, select it and have a shortcut to automatically wrap it like this:
/* ========= */
/* some text */
/* ========= */
I don't think I can use snippets, because ...
2
votes
1
answer
146
views
Use of # for commands in Tcl
I am using sentaurus TCAD for semiconductors device simulations and I have encountered something I can't understand in the .cmd files (the scripts in tcl that gets executed from specific tools) ...
0
votes
1
answer
87
views
Export comments from Google Spreadsheet
I used the following formula to export the comments from Google Sheets:
function myFunction() {
const excludeSheetNames = ['START', 'MASTER', 'REPORT']; // Exclude sheet names.
const ss = ...