Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

In lighttpd.conf usually comment 1 line with #

How was wondering how to comment multiple lines without adding # in front of each line.

thanks

share|improve this question
add comment

3 Answers

up vote 4 down vote accepted

since the lighttpd documentation doesnt show something like this in the syntax documentation, i dont think this is possible.

however, your editor may have a function to put a # in front of every line you select :)

share|improve this answer
add comment

You could pull the lines out into a separate.conf file and then in the main file do:

include "separate.conf"

Then you have a single line that you can comment in/out as you wish with a #.

Not precisely what you want, but depending on why you want to do it, that might be of use.

share|improve this answer
add comment

This is PHP, correct? If so you would just use:

/* This is the start of my comment

This is more of my comment. This is

the end of my comment. */

Good luck.

share|improve this answer
    
No it is the webserver configuration file. How can be php if I use # on a single line ? –  Patrick Nov 17 '10 at 12:19
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.