Fix syntax highlighting
This commit is contained in:
parent
451230f440
commit
b428bef808
1 changed files with 4 additions and 3 deletions
|
@ -28,10 +28,11 @@
|
||||||
<script>
|
<script>
|
||||||
var update_highlighting = function() {
|
var update_highlighting = function() {
|
||||||
var language = $("#language").val();
|
var language = $("#language").val();
|
||||||
if (language != "python3") {
|
if (language == "python3") {
|
||||||
var editor = ace.edit("editor");
|
language = "python";
|
||||||
editor.getSession().setMode("ace/mode/" + language);
|
|
||||||
}
|
}
|
||||||
|
var editor = ace.edit("editor");
|
||||||
|
editor.getSession().setMode("ace/mode/" + language);
|
||||||
}
|
}
|
||||||
|
|
||||||
var submit = function() {
|
var submit = function() {
|
||||||
|
|
Loading…
Reference in a new issue