6

In lighttpd.conf usually comment 1 line with #

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

thanks

3 Answers 3

5

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 :)

4

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.

-5

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.

1
  • No it is the webserver configuration file. How can be php if I use # on a single line ?
    – aneuryzm
    Nov 17, 2010 at 12:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .