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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
4 views

Allow the post author and commentor to see comments and hide comments from other commentors

I have a WordPress website based on multi-vendors. my site allows any registered person to make a post and any other registered can make a comment on it that post. the question is.... 1- I want to ...
Technoloki Space's user avatar
0 votes
0 answers
13 views

Positioning comments on an Excel worksheet Microsoft.Office.Interop.Excel / C#

I wish to position comments on top of the target cell but they are always placed at the same (default) position, with the respect of the target cell. I have tried increasing the shape.Top and shape....
user2493579's user avatar
0 votes
0 answers
22 views

How to add special symbols to custom PyCharm TODO comments?

I want to add a new TODO comment in PyCharm so that if I type out # ! [comment], the comment will be highlighted in red (Kinda like what they have in the Better Comments plugin). However, when I tried ...
WannaBePython's user avatar
0 votes
0 answers
29 views

Maintain Useful commented codes in separate class in C#

I have a useful commented codes in every classes as below which are used for future references .Is there is any alternative way to effectively maintain commented codes in difference class and can be ...
jansy's user avatar
  • 1
0 votes
0 answers
23 views

Why is using multiline comment not allowed in the middile of if statement? [duplicate]

This code yields invalid syntax: a = 'hi' """ comment 1 """ if a == 'hi': print(a) """ comment 2 """ elif a != 'hi': print('hello') ...
Ooker's user avatar
  • 2,059
0 votes
0 answers
13 views

WordPress Template: Unable to Add Comment Replies in Custom Theme

I'm creating a WordPress template, and I'm having an issue with the commenting system, specifically with adding replies to comments. In other themes, when you click "reply," you can directly ...
sadasdadssad's user avatar
1 vote
1 answer
25 views

Google Sheets Pivot Table

Is there a way to add a comment column to the right of a pivot table, and ensure that the comments added also move correctly when the pivot table is refreshed? For example, If I have a pivot table ...
Rosanna Caruso's user avatar
-1 votes
0 answers
13 views

What is the signification of TODOX?

In some very legacy code, I see several variations of the classical (and not best practice) TODO: I read the form TODOX (finishing by X), which seems to have almost the same signification. I know it's ...
Sandburg's user avatar
  • 755
1 vote
0 answers
36 views

Emacs - octave-mode: How to change comment character?

I'm using Emacs 27.1 with octave-mode 6.4.0 to edit Octave code for a class in Matlab. I'd like to change the character that octave-mode uses for comments from '## " to the Matlab standard "%...
Kevin Zembower's user avatar
1 vote
0 answers
30 views

Use implementing class name in inherited XML comments from interface

Please consider the following: Public Interface IDatabase [...] ''' <summary> ''' Executes the specified SQL command against the current ''' <see cref="IDatabase"/> ...
G_Hosa_Phat's user avatar
  • 1,006
0 votes
1 answer
16 views

Eclipse - Java - Auto Commenting (Alt-Shift-J) just adds blank comments

I am trying to add comments to my code. When I highlight a function and press Alt-Shift-J, it just adds three blank lines of commenting: /** * */ protected void doGet(...
jonesy19's user avatar
  • 133
0 votes
0 answers
75 views

No List matches the given query

I want to be able to add a comment on the product page, but after clicking on the comment button, it gives this error. What is the problem? I tried this code before, it worked perfectly, but now it ...
zahra shokrizadeh's user avatar
-1 votes
0 answers
14 views

Disqus Comments not loading on page

I am using universal Disqus code on my site. It's placed exactly like it was on instructions, but the Disqus comments block not loading at all. The .js file is available and get code 200. Example page ...
Davy Jones's user avatar
0 votes
1 answer
46 views

Extract Google Sheet Comments from cell to new Sheet

I have a inventory list with Google Sheet and used Comments as record for transaction. However, it's reaching the limit and i can't add more. Is that possible to make the script run automatically with ...
Charles Chan's user avatar
0 votes
0 answers
27 views

Create a tag when @-symbol (@mention) is used

When someone types @ and 'John' (in Teams for example), the name is embedded in an object that seems to have its own functionality, i.e. send an email to the person once the comment is saved. In the ...
Dieter Stalmann's user avatar
-1 votes
0 answers
17 views

Facebook - Making a text link in a Facebook comment

In this youtube video, one can create a text link in a Facebook comment that leads the user to a Facebook page. https://www.youtube.com/watch?v=rLIMbjxiYWI&t=1s I would like to know how I can ...
Charles H.'s user avatar
0 votes
0 answers
8 views

Comment Form Validation Wordpress

I've got a problem with comment form validation in wordpress. Ive tried many solutions and none of them worked for me. I'm using Astra theme with elementor and I'm trying to get comment form ...
Konrad_For's user avatar
0 votes
0 answers
10 views

I failed to retrieve comments using PHPWord

I failed to retrieve comments using PHPWord. I have tried multiple formats of Word documents, but I couldn't retrieve the comments successfully. The comments appear empty, and I'm not sure what the ...
user10741806's user avatar
-1 votes
0 answers
38 views

How to comment a php line in which there is a condition

How to comment a php line in which there is a condition in a form whose html and css style I am editing locally on my wamp server. The form works perfectly online but if I don't comment out the php, I ...
faure's user avatar
  • 101
-1 votes
1 answer
57 views

Counting comments by sheet wih apps script in Google Sheets

I need to count comments in a Google sheet by author. I used a Google Apps Script library and Drive API, i reached this code: function countCommentsInSheet() { const ss = SpreadsheetApp....
Manuel Ocampo's user avatar
0 votes
1 answer
47 views

Deactivate Elementor Comment in Style in Wordpress

how can i get rid off the Elementor comment in style in webpage? <div class="elementor-widget-container"> <style>/*! elementor - v3.15.0 - 20-08-2023 *...
jsprung's user avatar
  • 11
0 votes
0 answers
13 views

Why does this happen in a bat file?

If I structure an IF statement as so: For %%X in ("%TargetFile1%") Do Set "CurrentAttrib=%%~aX" If Not "%CurrentAttrib:R=%"=="%CurrentAttrib%" ( color 4f echo ...
ruggb's user avatar
  • 93
0 votes
1 answer
45 views

How do I transform elements in comment?

Is it possible to keep elements in a comment when applying an XSLT to a XML-file? I want til transform: <div> <!-- <rs type=”bible”>Mos 1</rs> --><note>Hello World</...
KSR's user avatar
  • 29
0 votes
0 answers
15 views

How can I get BBEdit using a Language Model for Stata to recognize an asterisk after a tab as the start of an Open Line Comment?

I am using a Language Module for Stata in BBEdit. Open Line Comments in Stata can begin with either an asterisk or two forward slashes in a row. BBEdit handles comments beginning with two forward ...
Social Credit's user avatar
0 votes
0 answers
42 views

Word VBA TrackRevisions with comment pane

I understand there have been issues since Microsoft changed the way comments are handled (this is MS Word). I have a proofreading macro that includes the line "If ActiveDocument.TrackRevisions = ...
hmm's user avatar
  • 11
-2 votes
1 answer
45 views

Required Comment in New Column based on criteria of other columns in power query [closed]

This is a table where I need to find out which invoice material batches were used sequentially or not sequentially, in simple words to find out which invoices were billed in multiple batches in a ...
Amar Gunjal's user avatar
0 votes
0 answers
16 views

change the background color of comments in darkmode

In my blog (4AllFreeModApks.blogspot.com), I can not change the comment section background color to dark in darkmode image need to change comment section also to dark in darkmode i used comments.app (...
John Milton M's user avatar
0 votes
0 answers
12 views

mysql query to count of posts, comments and likes & dislikes with multiple joins [duplicate]

I'm trying to get posts with count of likes_dislikes and comments. I have six tables: users categories posts likes_dislikes comments likes_dislikes_types Tables 1,2 are parents and 4,5 are childs of ...
justmasif's user avatar
1 vote
0 answers
43 views

vscode : Make link that when clicked open a script to a specific definition

As the title says, it is possible to make a clickable link inside a comment to a script at a specific class definition? I've added a function inside a python method of a class, I've put a comment ...
user avatar
0 votes
0 answers
40 views

Extracting Resolved Comment Status from Microsoft Word Document

I am trying to find a way to extract resolved comment status from a word document. Here is the current way I am extracting start, end, authors, and date from within comments. Is there a way to grab if ...
python_dev911's user avatar
0 votes
1 answer
27 views

React doesn't update comments AND comment amount even if i update state , i have to refresh the page to see new comments and amount of comments

handleCreateComment gets called from my child component called Comments but the new comment doesn't render even if i update the state. //create Comment handleCreateComment = async (Comment, foodId,...
thugcat85's user avatar
0 votes
0 answers
15 views

will facebook Instagram webhooks notify me of a command deletion?

Is it possible via the facebook Instagram webhooks to be notified when a command is deleted? If not, what is the alternative way to know if a comment has been removed from my Instagram page?
Fahimeh Rahmatipoor's user avatar
0 votes
0 answers
13 views

My Jupyter Notebook added two linebreaks in some of my comments, deleting some parts and thus breaking execution

I use Jupyter lab and today when I tried executing my notebook I ran into errors caused by some of the comments beeing splitted and moved to the next line. I did not run any formatters on the notebook....
Tim S.'s user avatar
  • 1
0 votes
2 answers
29 views

No reverse match with comments

I want to display my comment form in my page. However, every time i enter the page i get no reverse match error. Maybe there is something to do with form action, but honestly I have no idea what to do....
Shaxriyor's user avatar
-4 votes
2 answers
60 views

Bad HTML filtering regexp [closed]

do you know why CodeQL suggest this? what is wrong in the code? values = vals.replace(/(^\s*<!--)|(-->\s*$)|\s+/g, '').split(','); This regular expression only parses --> and not --!> as a ...
Oliver Modinger Oroz's user avatar
0 votes
0 answers
21 views

BigQuery: Comments at top of the query while creating a view

I need to know why when I create a view any comment before the "SELECT" statement is ignored. Do you know if this is an intended behavior? I know I can use a bk command, concatenate the ...
Rodrigo De La Sota's user avatar
0 votes
0 answers
12 views

Add an image as comment to an issue in GitHub programmatically

I am migrating a repo from Bitbucket to GitHub and I am using the GH API. According to the documentation: https://docs.github.com/en/rest/issues/comments?apiVersion=2022-11-28#update-an-issue-comment ...
JFerro's user avatar
  • 3,203
0 votes
3 answers
105 views

How to remove all/multiple comments in a Flutter file at once?

How do I remove all the the comments in this file at once ? I don't wanna go line by line and erase all the comments or select an area + backspace multiple times. Is there any shortcut? code with ...
Shinchandler's user avatar
0 votes
2 answers
29 views

Wrong line comment in an HTML file in style tag (using Ctrl+/ ) in VS Code

I've noticed that when I try to add a line comment in an HTML file in style tag (using Ctrl+/ ), instead of this: /**/, I get this <!-- --> in VS Code The image of the issue: I try to comment ...
Kedar nayak's user avatar
0 votes
0 answers
19 views

Customize language in VS Code

I have test scripts that use a language that most closely resembles Visual Basic. The only issue is that the Visual Basic language selection in VS Code does not identify #comments as comments. Is it ...
sethdhanson's user avatar
0 votes
1 answer
95 views

Is there any way to configure how VS Code's C++ extension formats Hover Info documentation?

My colleagues and I have settled on a way of documenting our C functions along the lines of: /// --------------------------------------------------------------------------- /// @brief A brief ...
Tim Long's user avatar
  • 13.5k
2 votes
1 answer
34 views

Rust-like comment compilation for kotlin/java?

in short, rust compiler can compile certain code in comments, such as example code, against the actual code - resulting in always up to date commentary. Anyone aware of any sort-of-equivalent for ...
MomStopFlashing's user avatar
0 votes
0 answers
125 views

Retrieving nested comments with recursion in Prisma raw query

I am working on a project where I need to retrieve nested comments along with their authors using Prisma raw queries. I have a Comment model defined in my schema, and I want to fetch all the comments ...
Ujen Basi's user avatar
0 votes
0 answers
17 views

What information should be included in comments at the top of a file?

I'm writing a small Python program for my company that only a few managers are going to be using. What should typically be included in the comments at the top of files? I've included the date of ...
Blockerwiz's user avatar
2 votes
3 answers
81 views

How to comment code blocks in Python that contain backslashes in strings?

A backslash in a Python string indicates the beginning of a control command, for e.g. text\n adds a new line after 'text'. If backslashes in strings shall not be interpreted as commands a r must ...
granular bastard's user avatar
1 vote
1 answer
375 views

neovim (AstroNvim) treesitter/highlighter error on comment-lines

I've just installed astronvim and have the following issue: when there is any comment in the file (python #, lua --, etc.), treesitter/highlighter displays the following error: Some extra-information:...
Dmitriy Lunev's user avatar
2 votes
1 answer
101 views

What is the exact meaning in C++ of these escape sequences (\n, \t, \v) in comments?

I was reading through the Working Draft of C++ and was surprised when I came across the seemingly simplest feature of programming: Comments! (and even more surprised that I didn't find anything about ...
Eldinur the Kolibri's user avatar
1 vote
1 answer
76 views

Enable Comments for Portfolio post type on Woodmart theme

I use Woodmart theme and on the Woodmart theme has intentionally disabled comments for the Portfolio post type and the option is not available in the theme settings. So, How can I add Comment on it? ...
Mohsen's user avatar
  • 302
0 votes
2 answers
84 views

Github: How can I reply to several comments in one go

Im my PR I received several comments on my code. In the conversation tab I see the comments underneath a green box with proposed changes and a space to reply to the comment. This is shown for each ...
user3443063's user avatar
  • 1,481
0 votes
0 answers
29 views

How to retrieve HANA View comment from HANA Studio

After creating a view in HANA, it is possible to add a comment at the view level, or at the column level with the command : COMMENT ON VIEW "view_name" IS 'view comment'; COMMENT ON COLUMN &...
HANAGB's user avatar
  • 13

1
2 3 4 5
126