programming the Arduino lilypad

..

I want 5 leds on the light

Not the reft?

Please explain what you want the 5 LEDs to do.

using the light sensor.

What light sensor? For what purpose?

How can I write codes?

With a text editor, of course.

Can you help me?

When you have some real requirements, yes.

We still need to know what light sensor that you are using and what the LEDs are supposed to do. If we have that information we might be able to point you to some tutorials and/or example code.