big-moving.ru/api/soft/CodeMirror/css.php

14 lines
425 B
PHP
Raw Normal View History

2022-06-24 15:29:23 +05:00
/*var editor = CodeMirror.fromTextArea(document.getElementById("<?=$_GET['el'];?>"), {
lineNumbers: true,
theme: 'dracula',
mode: "css"
});
*/
var editor = CodeMirror.fromTextArea(document.getElementById("<?=$_GET['el'];?>"), {
extraKeys: {"Ctrl-Space": "autocomplete"},
lineNumbers: true,
theme: 'dracula',
autoCloseBrackets: true,
mode: "css"
});