Questions tagged [block-comment]

A multiple-line comment in computer code.

Filter by
Sorted by
Tagged with
0 votes
0 answers
38 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 ...
user avatar
3 votes
2 answers
300 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" ...
user avatar
  • 133
0 votes
1 answer
47 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 ...
user avatar
15 votes
1 answer
3k 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: ...
user avatar
2 votes
0 answers
55 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 ...
user avatar
  • 1,616
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
user avatar
2 votes
2 answers
3k 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 *******************...
user avatar
  • 23
7 votes
1 answer
392 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 ...
user avatar
  • 5,371
134 votes
6 answers
345k 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 ...
user avatar
16 votes
5 answers
33k 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 ...
user avatar
  • 24.5k