You will need a very small aperture (lower number on your camera), a very long shutter speed (like 30 seconds) and an iso of like 100(also use a flash if you want to have something in the picture, after it flashes, the only things that the camera will detect are the initial picture that used the flash and the light that you wrote with) This will need to bee done in complete darkness if you can. Once you have the settings down, find a very small LED light, press the shutter button, and aim your LED light at the lens while you are writing. This will take some practice, it's not as easy as it looks.
-Good luck and Have FUN!!!