Comment Comment by ph0rcyas How is this different from codemirror? Codemirror's preview utility easily handles this (and much more versatile in other ways): http://codemirror.net/ http://codemirror.net/demo/preview.html parent ph0rcyas 14 years ago