virt2/api/soft/CodeMirror/css.php

14 lines
425 B
PHP
Executable File

/*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"
});