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

aneuryzm
  • 1,614
  • 5
  • 25
  • 40

3 Answers3

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

brot
  • 111
  • 5
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.

slm
  • 7,355
  • 16
  • 54
  • 72
ferrix
  • 41
  • 1
-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.

JohnyD
  • 1,614
  • 2
  • 20
  • 29