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

EMuentes picture EMuentes · Dec 13, 2011 · Viewed 29.1k times · Source

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?

Answer

Samuel Liew picture Samuel Liew · Dec 13, 2011

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.