Questions tagged [block-comments]

A syntax element that allows multiple lines of text to be used as comments, (that is, ignored by the compiler), without having to mark each and every line separately as a comment.

35 questions
2
votes
1 answer

How can I comment or uncomment multiple lines in the built-in MobaXterm editor?

I would like to block-comment in MobaTextEditor. There doesn't seem to be any info on this online in any place so I'm wondering if anyone knows where I can find documentation on this or if they know from experience. I tried adding a keystroke for…
Ryan Dempsey
  • 97
  • 1
  • 9
2
votes
1 answer

Android Studio JavaDocs do not generate

I started Android studio (2.1.2) today and when trying to add block comments using /** + enter, it is not generating the entire block with params and return statement. I'm not sure what is causing this. I tried googling the issue. But I'm unable to…
sha
  • 1,410
  • 2
  • 18
  • 37
2
votes
2 answers

Block Comment Being Closed By "*/" In String

This is a quality of life question that might be awfully simple, but, I cannot seem to find an answer for it. If you start a block comment... /* my code here string url = "lorumipsum....*/...lorumipsum"; <---this "*/" is closing the comment…
Max
  • 5,799
  • 3
  • 20
  • 27
2
votes
1 answer

Exact specification for block comment

What is the exact specification for block comments? It seems to be true that the first and the last lines have to start exactly with =begin and =end. But besides that, there is a little unclarity. Some descriptions say =begin and =end must be the…
sawa
  • 165,429
  • 45
  • 277
  • 381
1
vote
0 answers

Huge chunks of minified js file interpretted as block comments

I didn't see almost any support on this issue surprisingly (I'd imagine this to be a common problem) so, I'm here. I'm working on an angularFire webapp and when downloading the minified js files for the latest versions of angular (1.5.0) and…
1
vote
1 answer

How to enable folding of eclipse style block comments in Android Studio?

Is there anyway to get Android Studio to show the folding +/- icon for Eclipse style block comments, for example either, /* * Here is a block comment. */ or /* Here is another comment. */ I only get the fold/expand icons for blocks that begin…
Monte Creasor
  • 466
  • 5
  • 12
1
vote
3 answers

Check if the line contains /*

I want to check if my line contains /* or not. I know how to check if the block comment is in the start: /* comment starts from the beginning and ends at the end */ if(line.startsWith("/*") && line.endsWith("*/")){ …
gecco
  • 281
  • 4
  • 18
0
votes
1 answer

how do I change the way VS comment out the lines from `//` to `/**/`

In Visual Studio, I selected the lines and click "Comment out the selected lines" in the tool bar. The VS will put // in front of all selected lines. How do I change the style so that the VS put the selected lines in between /**/?
Taitai
  • 584
  • 2
  • 7
  • 18
0
votes
1 answer

Is there a way to specify an XML file in block comments in Kotlin class?

I can't figure out a way to mention an XML file inside block comments in a Kotlin class. I know it is possible to tag a class or function but what about an XML file in an Android project. Something like this where nav_graph.xml is the file to be…
Wahib Ul Haq
  • 4,185
  • 3
  • 44
  • 41
0
votes
0 answers

JetBrains setting for commenting block of code with indent

I have a problem with my JetBrains product which is not correctly comment block of code with Ctrl + Shift + /. When I use this to comment my code it will add /* and */ in first column instead of my code indent so then after using reformatting my…
0
votes
2 answers

auto formatting new line after inline block comment

Visual Studio autoformat places a new line after all block comments - at least the one I am using. It does so obviously only for those comments, which come first on a line. /*mark1*/ double[] a = new /*mark2*/ double[100]; is formated to:…
user492238
  • 4,094
  • 1
  • 20
  • 26
0
votes
2 answers

Remove Leading Space before Asterisk - Block Comment Style in IntelliJ

In using IntelliJ, I have found that it puts a space in the second and subsequent lines before the asterisk for a block comment, for example: /*************************************************************************** * This is a code header. *…
theMayer
  • 15,456
  • 7
  • 58
  • 90
0
votes
1 answer

Turn off the leading * in C# block comments

In the following thread... https://softwareengineering.stackexchange.com/questions/232323/asterisks-in-multi-line-comments ...person27 shows how to turn off the extra asterisk that is placed, automatically, by Visual Studio. Unfortunately, in…
Paul
  • 4,160
  • 3
  • 30
  • 56
0
votes
2 answers

How to turn a set of lines into comments?

I know by putting ! at the beginning of a line it will turn into comment. But how can I do that for a lot of lines? Of course I don't want to do that by putting ! line by line. I'm using Fortran Powerstation.
Nina
  • 1
  • 3
0
votes
2 answers

Unable to block comment a small piece of javascript code with regex

This is the line which works perfectly fine. 'some words'.split(/,*/); But when I do a block comment as show below, I get a syntax error. /* 'some words'.split(/,*/); */ Couldn't find about this behaviour anywhere. Not sure if this is a know bug…
boggy b
  • 31
  • 1
  • 5