6,289 questions
Advice
0
votes
2
replies
40
views
Use backticks inside backticks in JSdoc / PHPdoc etc
We can document code with backticks in JSdoc to see it styled like interpreted markdown when hovering over the definition:
/**
* This function is similar to `someFunction(foo)`
*/
function bar() { .....
-2
votes
1
answer
255
views
How do I create comments in my code that contain depiction of dialogs, windows and forms [closed]
I want to add comments that depict the UI as part of its explanation.
Before going on: Note that this is just an example, in most of the times, such drawing are needed to explain algorithms (A better ...
1
vote
0
answers
111
views
VSCode only checks JSDoc in files that are currently open. How do I make it check the entire project?
Currently, VSCode only recognizes JSDoc @typedef declarations in files that are open.
For example, if I have a @typedef comment in a file that is NOT currently open in VSCode, VSCode thinks the type ...
1
vote
1
answer
95
views
Oracle SQL Developer claims missing select just because of end line comment
If I select all text in the SQL Developer and execute it, it works:
select 16 cc, date '2025-03-05' coDate, 18 nr, 594.34 tvaInc, 1 cat from dual union all
select 16 cc, date '2025-03-06' coDate, 22 ...
1
vote
2
answers
40
views
Macro for multi word or phrase find and apply comment bubble with specific comment
Looking for help as I'm trying to find a way to get a macro to find a specific word or phrase and, if found, apply a comment, if not found to move on to find the next word and apply comment. I want ...
0
votes
0
answers
58
views
How to access LinkedIn Messaging and Comment APIs for custom integration?
I’m trying to develop a custom integration where our backend system can interact with LinkedIn’s messaging and comment features — such as sending/receiving direct messages or posting/retrieving ...
2
votes
1
answer
113
views
How to parse comments and keep them?
I am creating a tool that transpiles a language that is pretty much OCaml to valid OCaml code.
Now, I absolutely need to keep comments (in the correct places) when transpiling to OCaml.
The problem is ...
0
votes
1
answer
74
views
VBA in Word - selecting ranges and making comments
I've been trying to figure this out, but no such luck.
Ultimately, I'm trying to create a macro that searches the Word document for each instance of String1, selects a range of text starting with that ...
0
votes
2
answers
119
views
HTML coding in Wordpress Classic Editor
I'm trying to lay out a text with a series of numbered comments that are part of the piece. As it is now, they're listed at the end of the text.
Does anyone know the coding to have the text jump to ...
0
votes
0
answers
56
views
In Eclipse CDT how to create clickable function links in C comments?
I’m working on a C project in Eclipse CDT and need to create clickable links between functions in comments (without leaving the editor). For example:
c
/* How to make this link clickable to jump to ...
2
votes
1
answer
94
views
Copy Paste to a cell Comment
Is there a way to copy paste into a cell comment? Can only do it from the clipboard, not from a cell or range reference. Or is there perhaps a vba way to call up the info in the clipboard and then ...
0
votes
1
answer
60
views
Comments in between POSIX shell script's function name and its body, problem?
I wonder if I may use comments in between POSIX shell script's function name and its body? This appears not to throw any problem in shellcheck and runs in Dash / Bash, but searching for this ...
0
votes
2
answers
129
views
Is there a spacemacs-y way to comment lines in Doom Emacs?
Is there a spacemacs-y way to comment a line in Doom Emacs? In Spacemacs, it's SPC c l, but I couldn't find anything of the sort for Doom Emacs. I know I can comment a line using SPC : and then ...
0
votes
1
answer
85
views
Rider Code Cleanup Auto Indenting on Comments
Does anyone know how to stop Rider's code cleanup tool from affecting the indentation of comments?
For reference whenever I use the code cleanup feature it changes this:
switch (PlayerController->...
2
votes
4
answers
121
views
xmlstarlet: Match / find by comments?
I have an XML file that looks like this:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rrd SYSTEM "https://oss.oetiker.ch/rrdtool/rrdtool.dtd">
<!-- ...
0
votes
0
answers
38
views
Eclipse Java formatter - do not change comment indentation
I am trying to stop Eclipse changing the indentation of comments when using the formatter.
e.g.
public class Test
{
public static void main(String[] args)
{
// comment 1
if (...
0
votes
2
answers
169
views
How can I avoid VS Code editor quick suggestions in comments in CSS files when typing `:`?
When I type : in a comment in a CSS file, VS Code shows a popup with suggestions to autocomplete with any CSS pseudo-element and pseudo-class. Screenshot attached.
screenshot showing the issue I just ...
0
votes
1
answer
59
views
Comment colour change not taking effect
I found a VSCode theme I really like but the comment colour was too dark. I changed the colour value in settings.json, however it doesn't work. I have done this before with other themes and it has ...
1
vote
1
answer
78
views
Add Star Rating Above WordPress Comments & Hide After Rating
I’m working with a Blocksy child theme and have implemented a star rating system for posts. However, I’m facing an issue where:
I need the star rating to appear above the default WordPress comment ...
0
votes
0
answers
30
views
how to turn on/off "comments" module using Joomla
I need to turn on/off the module for "comments" section on Joomla. I have looked around for the module and can't find it. Honestly I'm not a professional programmer and my results are not ...
0
votes
0
answers
55
views
Force C# comment style in VSCode for all languages
For a reason that has been proven useful in my company, it has been decided to standardize the comment and coding style imitating C#, both in JavaScript, TypeScript, and even PHP for some old issues, ...
-1
votes
2
answers
79
views
Why is the text located inside the multi-line comment causing a syntax error in my python script? [closed]
terminal console messages for my command:
PS C:\Users\dev> python 'C:\a-c-151_(o-c-091)\uk-land-registry-data-pipeline.py'
File "C:\a-c-151_(o-c-091)\uk-land-registry-data-pipeline.py", ...
-1
votes
1
answer
52
views
python package `drf-comments` not being recognized
i am developing a rest-based django project. i want to implement a commenting system in my project; but it has to be decoupled from the other apps. therefore, deepseek suggested to use drf-comments in ...
-1
votes
4
answers
426
views
How to Properly Comment Out Multiple Lines in HTML When Content Contains -->
I’m working on an HTML document where I need to comment out multiple lines of code. However, the issue arises because some of the lines already contain the sequence -->, which causes the browser to ...
0
votes
1
answer
30
views
How to restore comments in Google Colab to traditional form
In Google Colab, it offered to store comments in iconified form on the right, so that they appear as a round button with a number inside of it. I can only view the comment if I click on that number. ...
-1
votes
1
answer
97
views
How to write comments on a @typedef for Closure compiler?
Here is how you define a custom type, from the Closure compiler documentation:
/**
* @typedef {{
* foo:string,
* bar:number,
* foobar: (number|string)
* ...
0
votes
0
answers
83
views
Highlight full comment that contains keyword in custom color
I want to highlight a comment with a custom color when the comment contains a specified keyword, e.g. todo.
I want to highlight the entire comment, not just the keyword itself.
How to do that in VS ...
-4
votes
1
answer
118
views
how to get struct fieldname and related comment in rust
#[derive(SomeMarco)]
struct MyStruct {
field1: i32, // this is a comment
field2: String, // hello world
}
I now have a struct like this, and i want to get the field name and comment, how ...
2
votes
1
answer
52
views
Can view in psql inherit comment from table on simple columns?
Suppose I have dummy table like this:
CREATE TABLE test_table (value INT);
And a comment on that column:
COMMENT ON COLUMN test_table.value IS 'Test comment';
Then, I create a view on my table:
...
0
votes
2
answers
365
views
Would comments in ReactJS show in client browsers with Vite? [closed]
Currently, I am using Vite with ReactJS and have the following two types of comments inside my codes, for example:
export const Main = () => {
useEffect(() => {
// console.log("first ...
0
votes
1
answer
88
views
How to set the Visual Studio C# Comment Out approach
I'm using VS Community 2022 v17.10.5. Just recently, when I comment out c# code in a Blazor component (.razor), it is using "@* @" instead of "//". It uses "//" in my ....
0
votes
1
answer
35
views
TextX Grammer Rule for CStyle Comments
I'm trying to make a textx grammar that will include a the ability to have single line comments like a c/c++ source file. e.g.
//this is a comment
This is the grammar I have developed to test this. ...
0
votes
1
answer
103
views
Why does black output a different format when code has comments?
what I want
My goal is not to keep the code the way I want it to be and disable black package formatting.
The point I want to learn is that the difference between the two pieces of code is just one ...
1
vote
0
answers
142
views
Color problem in disqus in Django and Tailwind
I tried to use disqus in my django project:
<div>
<div id="disqus_thread"></div>
<script>
/**
* RECOMMENDED CONFIGURATION VARIABLES: EDIT ...
0
votes
0
answers
62
views
Vue throws an error due to Multiple spaces found when I try to align a commment
I am trying to comment some Vue code on a template like this:
showSelectedValue: { // ------- showSelectedValue -------
type: Boolean, // Switches between showing ...
2
votes
0
answers
152
views
Can you insert HTML comments in the output of a MediaWiki article/page?
MediaWiki has first-class support for comments using HTML's <!--...--> syntax, but it always strips them from the output.
I think that's for a good reason, but I would like to have templates ...
4
votes
3
answers
135
views
Combining a multi line batch command with inline comments
I have a very long command line string and i want to comment some arguments/switches and describe what they do and what can be adjusted with them. the following simplified batch-file does not work, ...
1
vote
3
answers
941
views
New Instagram Graph API: How to get the username of a comment with the "Instagram API with Instagram Login"
With the new Instagram Graph API (graph.instagram.com) it is not possible to get the username of comments.
The API is also known as "Instagram API with Instagram Login" (https://developers....
0
votes
0
answers
133
views
YouTube API commentsThreads() displays that a video disabled comments even though the video has tons of comments
While retrieving comments through YouTube API, I have come across a problem in which the code suggests that a video has disabled comments, thus returning an error, even though I can directly access ...
2
votes
1
answer
167
views
Why do Lisp style guides recommend the specific numbers of semicolons for comment in several cases?
I read in the style guide of Elisp and of Common Lisp to use specific numbers of semicolons in various cases, in short this:
single semicolons for comments at the ends of code lines
double semicolons ...
0
votes
0
answers
38
views
Any way to bring YouTube comments that are other than in English
I am currently developing a code that brings a number of comments from songs in playlist through Google YouTube API. However, the code doesn't seem to work with a video which has comments written in ...
1
vote
1
answer
1k
views
rustfmt: disable formatting for comment
I have the following piece of code:
/*
long explanatory comment with some ascii art etc.
*/
#[test]
fn foo() {
//...
}
I want to only disable rustfmt for my leading comment,
so I tried
#[rustfmt::...
0
votes
1
answer
114
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
116
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 showing the 'page, author, comment text & date created' for each ...
1
vote
3
answers
1k
views
Add clickable link while adding comments to vscode
I wanted to refer to links while writing comments for the code. It could be anything like images or a URL that explains a concept.
For eg: /**
*../../../Array/loops/2024-07-07-17-02-11.png
*/
I should ...
0
votes
1
answer
81
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
44
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
292
views
Why are there redundant slashes in comment headers in c or c++ "*//**"
I often see:
/**************************************************************************//**
* some comments
*****************************************************************************/
Why not:
/...
0
votes
1
answer
115
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
129
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 ...