.htaccess Editor: CodeMirror fixes

This commit is contained in:
Ruslan Keba 2013-03-25 17:05:49 +02:00
parent 367d38c549
commit 45d1cfddf6
2 changed files with 121 additions and 3 deletions

View file

@ -45,8 +45,17 @@ Header set Server "Apache/2.2.9 (Unix)"
</body>
<script src="codemirror.js"></script>
<link rel="stylesheet" href="codemirror.css">
<link rel="stylesheet" href="show-hint.css">
<link rel="stylesheet" href="simple-hint.css">
<script src="show-hint.js"></script>
<script src="htaccess.js"></script>
<script type="text/javascript">
var myCodeMirror = CodeMirror.fromTextArea(document.getElementById('code'));
CodeMirror.commands.autocomplete = function(cm) {
CodeMirror.showHint(cm, CodeMirror.htaccessHint);
}
var myCodeMirror = CodeMirror.fromTextArea(document.getElementById('code'), {
lineNumbers: true,
extraKeys: {"Ctrl-Space": "autocomplete"}
});
</script>
</html>