严格地说,EditArea 不是 HTML 编辑器,而是代码编辑器,它不是所见即所得的编辑器。它可以编辑 CSS、HTML、JavaScript、PHP、XML、SQL、C 等源代码。
EditArea 支持行号、代码高亮、查找替换……
注意:如果浏览器使用了缩放,则在编辑代码时,可能效果不好。
editAreaLoader.init({ id: id // textarea id , syntax: "xml" // syntax to be uses for highgliting , start_highlight: true // to display with highlight mode on start-up });
官方网站
http://www.cdolivet.com/index.php?page=editArea
演示地址
http://www.cdolivet.com/editarea/editarea/exemples/exemple_full.html