markItUp! is a JavaScript plugin built on the jQuery library. It allows you to turn any textarea into a markup editor. Html, Textile, Wiki Syntax, Markdown, BBcode or even your own Markup system can be easily implemented.
editorformjqueryjquery-formjquery-pluginjsonmarkuptextarea
http://markitup.jaysalvat.com/home/