This is a trivial lex program that converts plain text into HTML. It adds the proper escape sequences, and makes links active.
ACME Labs / Software / texttohtml