Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you comment out a block of text in the vhosts file?

Tags:

vhosts

How do you comment out a block of text in the vhosts file?

Do I have to put pound/hash symbols (#) in front of EVERY line?

like image 246
EMuentes Avatar asked Dec 12 '11 23:12

EMuentes


People also ask

How do you comment out a block of text?

The leading characters // are added to the beginning of each line when commenting one or more lines of code. You can also block comment multiple lines of code using the characters /* */ .

How do I comment out a line in host file?

Text from a "#" character until the end of the line is a comment, and is ignored. Host names may contain only alphanumeric characters, minus signs ("-"), and periods (".").

How do you comment out a large block of code in a script?

The %{ and %} surrounding the lines defining the w and v do comprise a block comment, so those variables are not created.


1 Answers

Yes, you will have to put pound/hash symbols (#) in front of ALL the lines you want commented out. There are no 'block comments' tag/symbols.

Some text editors have column-mode editing, which means you can select multiple lines and edit text in all of them at the same time. You can use this feature to insert the # symbol in front of the lines you selected.

like image 100
Samuel Liew Avatar answered Sep 18 '22 11:09

Samuel Liew