代码镜像 html 在 chrome 中不工作,但在其他浏览器中工作

code mirror html not working in chrome but working in other browsers

chrome 中的 Codemirror 有一些问题。它以前工作正常,但现在不能正常工作。 JavaScript 代码仍然有效,但 html 无效。请看一看。 click here

可能是因为您缺少 <!DOCTYPE html> 声明