.htaccess Editor: CodeMirror fixes
This commit is contained in:
parent
367d38c549
commit
45d1cfddf6
2 changed files with 121 additions and 3 deletions
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue