Fix syntax highlighting

This commit is contained in:
James Wang 2016-04-19 10:14:56 -04:00
parent 451230f440
commit b428bef808
No known key found for this signature in database
GPG key ID: 5B80C0B3F263CD5B

View file

@ -28,10 +28,11 @@
<script>
var update_highlighting = function() {
var language = $("#language").val();
if (language != "python3") {
var editor = ace.edit("editor");
editor.getSession().setMode("ace/mode/" + language);
if (language == "python3") {
language = "python";
}
var editor = ace.edit("editor");
editor.getSession().setMode("ace/mode/" + language);
}
var submit = function() {