Skip to main content

Questions tagged [block-comment]

A multiple-line comment in computer code.

Filter by
Sorted by
Tagged with
3 votes
5 answers
238 views

How to let sed un-comment one of multiple paragraphs separated by newlines?

Clarification: Using GNU sed. Status quo - ~/.screenrc, last lines: # name synthpop # screen -t script emacs -nw /home/$USER/bin/synthpop # name thrashmetal # screen -t script emacs -nw /home/$USER/...
futurewave's user avatar
0 votes
0 answers
50 views

Capturing comment character from matching pattern

I would like to pick out lines from a file matching # Mode: org # can be any comment character for the programming language of the file. Rather than #, in could also be any of ; or !, with any ...
Vera's user avatar
  • 1
3 votes
2 answers
6k views

Passing Argument to Comment in .sh script

I am a beginner in the use of .sh scripts so please excuse my ignorance. This is my problem: To submit my jobs to our cluster the corresponding submit file has to contain a "slurm header" ...
stollenm's user avatar
  • 133
0 votes
1 answer
65 views

Prepend two lines containing comments and URLs before specific line in python-scripts using sed

In some of my python-scripts, I've put the line if __name__ == '__main__' in order to make the content only be executed, when the script is run itself as main-script (as opposed to being imported, see ...
Andreas L.'s user avatar
15 votes
1 answer
4k views

What does (arg: n) in the command prompt mean?

On Codecademy's Command Line Course, when trying to use the keyboard shortcut Alt+Shift+# (which is supposed to comment the current line) in the command prompt, it switches the prompt from $ to (arg: ...
user331380's user avatar
2 votes
0 answers
85 views

How to exclude programs from writing to RAM block cache? (e.g. media player)

When playing back huge video files, the media player ravenously consumes disk cache and thus kicks out blocks cached by other programs. Not to confuse with LinuxAteMyRam.com. I would like the media ...
neverMind9's user avatar
  • 1,700
0 votes
1 answer
1k views

How to comment out LaTeX code in Gedit? [closed]

I am not sure if it is supported but cannot find it. OS: Debian 8.5
Léo Léopold Hertz 준영's user avatar
2 votes
2 answers
4k views

how to use SED to replace comments within a comments section

Assume that I have a file that starts with the following /********************************************************* blah blah blah blah blah blah blah blah blah *******************...
 Chan's user avatar
  • 23
8 votes
1 answer
476 views

Change inside comments with Vim

Is there a way to change inside of a comment with Vim? I know you can change inside brackets and quotes with i] and i". For example, If you are on a quote you can press, ci"my new textESC And this ...
Tyler Durden's user avatar
  • 5,743
150 votes
6 answers
386k views

How to comment multiple lines at once? [duplicate]

How can I select a bunch of text and comment it all out? Currently I go to the first line, go to insert mode then type # left-arrowdown-arrow and then I repeat that sequence, perhaps saving a few ...
Michael Durrant's user avatar
17 votes
5 answers
36k views

vimrc - how to block comment?

I don't want to comment lines of text in a text file or code. I am looking for inserting block comments in a .vimrc file. To insert a single line comment " is used, for example: " remove spaces and ...
mtk's user avatar
  • 27.8k