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?
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 /* */ .
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 (".").
The %{ and %} surrounding the lines defining the w and v do comprise a block comment, so those variables are not created.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With