我如何设置 CodeMirror TextArea 将在不回显标签的情况下理解 PHP?
文本区
<textarea id="code" name="code">
<?php
echo '<?php';
?>
</textarea>
JS 脚本
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
lineNumbers: false,
matchBrackets: true,
mode: "application/x-httpd-php",
indentUnit: 4,
indentWithTabs: true,
enterMode: "keep",
tabMode: "shift"
});