A completely customizable framework for building rich text editors. (Currently in beta.)
TinyMCE plugin for latex support
Cool links & research papers related to Machine Learning applied to source code (MLonCode)