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.
6,100
questions
0
votes
1
answer
16
views
delete post method not working with noticed gem rails
i have simple module inquest with comments , I used noticed gem to add notifications to comments , but when I delete inquest post , it stops server with page not working , and delete the whole account ...
0
votes
1
answer
46
views
apache poi: remove and create a comment for the same cell - Multiple cell comments in one cell are not allowed
I use in my java application the apache poi library version 4.1.1.
I have a method to set a cell comment that is called in various places in my application.
protected void setCellComment(final ...
0
votes
1
answer
12
views
Select column description from Netezza
I'm trying to get the description of the columns in Netezza but nothing comes up. In a table, I can get the description select TABLENAME,DESCRIPTION from _v_table; but how do I get the description of ...
3
votes
1
answer
40
views
How to add code reference in comments line in android studio?
I want to add code reference in comments docs like following screen shoot.
But this result I got
I really glad if someone guide me some gits or useful links for results that I want. Thanks
-2
votes
1
answer
35
views
How should doc comments be spread over multiple elements? [closed]
I need to document a piece of code that is 3-fold. I have an enum element, an associated constructor and a method that uses the enum to do work. Here is a minimal example:
use regex::{Error, Regex};
...
-1
votes
0
answers
38
views
How to comment in all line include real comment in VSCode?
Code:
<!-- Real comment here -->
<div>
some real html code
</div>
Desired Result:
<!-- <!-- Real comment here --> -->
<!-- <div> -->
<!-- some real ...
0
votes
1
answer
17
views
Each time i'm alt+shift+f my comment fly off in the distance
Each time i autoindent (with alt+shift+f) my comments move to the right. Each time i autoindent, they go away more like they still need to be aline.
I'm using VSSCode and it's only when i'm on a twig ...
0
votes
0
answers
13
views
How do I get the trackback count of a post in wordpress without writing an SQL query?
How do I get the trackback count of a post in wordpress without writing an SQL query?
I tried searching Brave Search and I couldn't find anything helpful. To fetch the amount of comments a post has, ...
0
votes
0
answers
12
views
JSDoc nested types not showing on VSCode
I have this code:
typedefs.js
/**
* A UUID.
* Example: 123e4567-e89b-12d3-a456-426655540000
*
* @typedef {string} uuid
*/
/**
* @typedef {Object} Notification
*
* @property {uuid} id - The ...
-1
votes
1
answer
49
views
Is there a standard for mentioning variables within comments?
I understand that, in principle, modern programming languages are intended to be used in a manner where the code written is self-documenting.
However, I was taught that on occasion it is necessary to ...
0
votes
1
answer
35
views
How multiple lines logging works?
I am working on a C++ program. I saw multiple lines of logs in this pattern in one of the files:
#include <iostream>
using namespace std;
int main()
{
std::cout << "First line&...
0
votes
0
answers
5
views
Which HTTP Request Is used POST a comment and display below of It that form
Which HTTP Request is Used to display comments on the Client-side By Post a comment from a
{ Text Form of Comment Section } Like we use Youtube
Youtube Display All comments which are posted by the ...
0
votes
1
answer
72
views
Collapse python comment in vs code
Not long ago, I started commenting a lot of code in python, the problem is that vs code does not offer me to reduce the comment.
I have tried single line comments and group comments but same issue..
...
-2
votes
0
answers
21
views
How to comment out multiple lines of Code with MACPRO!! in Python
I am looking for a short cut with my Mac Pro. there is no Antwort with Mac always windows. I wanna for example choose all this code and make it comment.You can see from foto. I tired it all doesn't ...
0
votes
1
answer
71
views
Mathematica : Convert easily a Notebook format into Wolframscript (.wls) by removing all comments on real instructions lines
I have a Mathematica notebook.
I would like to generate in an automatically way this notebook to a Wolfram script that I could make run directly from terminal under MacOS with : $ wolframscript ...
0
votes
0
answers
13
views
How to Add Auto Comment In Activity and Resource files
I already set the comment through Setting in "File and Code Templates > Includes > Fille Header.java" but it only work if I create class files.
#set ($USER = "XXX")
/**
$...
0
votes
1
answer
17
views
How to add a file path reference inside javascript comment?
Given the following code...
function foo() {
// Look at "./image.png" for reference.
}
Is there a standard way to write "./image.png" so that when the text is clicked (or ctrl ...
0
votes
0
answers
13
views
Fast way to obtain new comments with their parents using the PRAW API
I am trying to create a database of the bodies of as many Reddit comments, as well as the bodies of their parent comments. Currently I have a way to obtain large amounts of comments by simply ...
0
votes
1
answer
17
views
Is it possible to write a comment after a ';' in an SQL query?
In this code:
SELECT * FROM Customers
ORDER BY CustomerName ASC; -- some comment
If a comment is not part of the query/code, why can't I write it after the ';' char?
(Just tried it in w3schools ...
0
votes
0
answers
14
views
How to disable emacs evil automatically add comment character
I'm using evil-mode in emacs, writing python code.
When I commented one line, then hit 'o' to start a new line, the comment character # was
automatically added to the new line. How to get rid of this ...
0
votes
2
answers
38
views
Display an image from the asset in the documentation
I'm writing documentation about a variable and I would like to include an image that is inside the project. For example:
assets/
|- icons/
| |- my-image.svg
lib/
|- my_file.dart
I know it is ...
0
votes
0
answers
12
views
Is there a way to derive the commit hash from a comment using the BitBucket API?
I am trying to get the commit hash from a comment using the BitBucket API but I am struggling.
The commit hash isn't present at all within the response when getting a Pull Request comment.
I am using ...
0
votes
0
answers
22
views
Move Textfield up when Keyboard apperears inside Bottom Sheet in Flutter
I am currently trying to create some kind of TikTok like comment section in flutter. For this I'm using a ModalBottomSheet and a Expanded Listview with the comments inside. However, I'm failing to ...
0
votes
1
answer
25
views
Azure DevOps easy text widget?
Are there any widgets for Azure DevOps where users of dashboards can easily add text or comments? I considered the Markdown widget but that one is not as easy or intuitive for people to edit. Any help ...
0
votes
1
answer
18
views
How to document runtime of a function with Javadoc
I'm want to document the asymptotic runtime of a function, as it will be used for algorithm-engineering for graph problems.
What's the most idiomatic way to do this? Is there a way to create new tags ...
-2
votes
0
answers
20
views
What functions in python to preserve the proper style of html? [duplicate]
Good day, everyone! I just finished this tutorial on PythonAnywhere (https://blog.pythonanywhere.com/158/) and it's excellent. "Can I upload html code in the comments section with proper ...
0
votes
1
answer
24
views
Is it possible to add custom task tags in STM32CubeIDE?
I was wondering if one could define their own task tags (special comments like the default "FIXME" or "TODO") in the IDE? The IDE is Eclipse-based, but the preferences' window is ...
1
vote
0
answers
15
views
Atom, How to stop the new line from beeing commented?
When having a line of code that is commented on Atom, I press enter and the new line starts with a comment, which I hate.
How do you stop that? I've searched but haven't found the answear...
import ...
0
votes
1
answer
23
views
Get comments that contain specific words Gerrit
I want to ask about Gerrit, I'm looking into the review comments on the Nova project, I want to know if I can get all the comments that contain specific words, like 'TEXT'.
I tried comments:'TEXT' but ...
1
vote
0
answers
34
views
Comments feauter with JavaScript: who knows why condition on line 53 doesn't work?
I add text "You are answering:" in to block #aname, then it is checked if there is such text in that block, then the code should be executed but it doesn't. This is first time I'm writing on ...
0
votes
0
answers
13
views
WordPress Comment Form redirecting to another post's comment
Here is the code I used:
The code snippet is as follows -
I used custom markup for comment form fields and when I submit the form it takes me to another post's comment. What can be issue in this code ?...
0
votes
1
answer
28
views
Remove stroke collapse - Netbeans IDE
I am new to Netbeans and I'd like to remove the rectangle that strokes collapse's comments.
I'd also like to remove the plus icons for collapsing the code.
-1
votes
2
answers
78
views
How do I uppercase to lowercase and vice versa COMMENTS in C
Is there any way to do uppercase to lowercase and vice versa for COMMENTS?
For example:
*** input_file.c ***
#include <stdio.h>
/* My FIRST program */
void main(void) {
printf("Hello ...
1
vote
0
answers
49
views
Preserve comments in Vite
When I run Vite in dev or build mode, it automatically removes any comments in JavaScript/TypeScript files. Is there a way to get Vite to keep the comments?
EDIT: I've tried adding "...
0
votes
2
answers
45
views
Comments section not forming in Laravel
My comments section is not forming in Laravel. I get "The POST method is not supported for this route. Supported methods: GET, HEAD, PUT, PATCH, DELETE.", but I do not have POST method ...
0
votes
0
answers
14
views
Facebook Comments Section
I am using facebook comment SDK to add fb comments to my website page... But it does not show up and error says : "Because a cookie’s SameSite attribute was not set or is invalid, it defaults to ...
0
votes
1
answer
32
views
Use emacs To Process Code From Command Line
Is it possible to filter content from source files using emacs from command line. For instance, if you want to use emacs to filter out comments from code, can this be done just from command line?
My ...
-1
votes
3
answers
85
views
Can't understand what Javadoc is [closed]
I can't understand what 'Javadoc' is.
I wanted to know the difference between the /** */ and /* */ comments in the first place.
When I saw the answer in here, It said something about HTML and APIs in ...
1
vote
1
answer
34
views
how to add surrounding comments to an element in a list
fruits = CommentedSeq()
fruits.append('banana')
fruits.yaml_set_comment_before_after_key(0, 'comments above', after='comments below')
yaml.dump({'fruits': fruits}, sys.stdout)
I'd like the output to ...
4
votes
1
answer
79
views
Inline::Python tunneling mode
My raku Inline::Python code module unexpectedly prints output even when the rs_str method is disabled.
use Inline::Python;
role Series {
has $args;
has $!py = Inline::Python.new;
has $.po;...
0
votes
2
answers
39
views
hi how do get the user to responed back,printstatment but its not allowing me to responed back [closed]
print("hello!\n")
user_name = input("what is your name?\n")
print("hello, " + user_name + "\n")
print("how are you doing?\n")
print(+ user_name + &...
-1
votes
2
answers
55
views
Eclipse: How to remove all TODO tagged comments?
In Eclipse, is there any way, e.g., built-in functionality or short cuts of Eclipse, to REMOVE ALL comments tagged with TODO?
So far I can click and open each file via the matched TODO items as shown ...
0
votes
1
answer
13
views
B2: Attempt to redeclare already registered project id
My jamfile was working fine and now I have the following error:
error: at jamfile:4
error: Attempt to redeclare already registered project id '/MyProject'.
error: Original project:
error: Name: ...
0
votes
1
answer
35
views
When I append an element it does it twice rather than once
I am trying to make multiple comment boxes for a website. The first click to create the text area and submit button works fine. However when I click another it appends the text area and submit button ...
0
votes
0
answers
30
views
Has Python ever had a bug caused by comments?
I was curios to know if among the various Python's versions (and different interpreters, not only CPython but also PyPy or Jython) there was one in which an error could be caused by comments (#).
I ...
1
vote
1
answer
92
views
How to document function parameters while commenting in Flutter? [duplicate]
I would like to make some functions in Flutter, and to comment functions and parameters.
I was doing it earlyer in C#, but don't know how to document parameters in Flutter.
For example, I want to ...
0
votes
1
answer
35
views
Accessing table and column comments in Oracle for tables in SQL Server via databaselink
I use an Oracle database, where I have a database-Link to a Microsoft SQL Server database.
I need to access the comments for tables in the Microsoft SQL Server database from my Oracle database.
Using ...
0
votes
0
answers
10
views
What are the standards for good Code Definition and Documentation?
My team has recently created a large application that is a "system of systems" with multiple developers contributing to it. The level of documentation for each module and function is highly ...
0
votes
1
answer
37
views
User Name of document using VBA
I tried to find the user name of the word document using VBA and tried to compare it with Author of the specified comment, If they are same notify me else no.
I have written code which is as
Dim ...
1
vote
1
answer
52
views
PowerShell Gallery PSScriptInfo comment header breaking "Get-Help .\MyScriptName.ps1 -Full"
So I've been publishing my script to the PowerShell Gallery, using their required comment header with version, GUID, author, etc. The problem is, I've noticed that this comment header addition has ...