Wygify is a project mainly written in ..., it's free.
A jQuery plugin that converts any textarea into a light-weight WYSIWYG editor