|
|
|
@ -83,7 +83,7 @@ |
|
|
|
|
*/ |
|
|
|
|
updateStatusBar = function (e) { |
|
|
|
|
var cursor_position = editor.getCursorPosition(); |
|
|
|
|
$('.statusbar .position').text('@ ' + (1 + cursor_position.row) + ':' + (1+cursor_position.column)); |
|
|
|
|
$('.statusbar .position').text('Line: ' + (1 + cursor_position.row) + ', Col: ' + cursor_position.column); |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
@ -106,7 +106,7 @@ |
|
|
|
|
|
|
|
|
|
success: function (res, status, jqXHR) { |
|
|
|
|
if (res.memory || res.duration) { |
|
|
|
|
$('.statusbar .runtime-info').text('Load: ' + res.memory + ' MB, ' + res.duration + ' ms'); |
|
|
|
|
$('.statusbar .runtime-info').text('Mem: ' + res.memory + ' MB, Time: ' + res.duration + ' ms'); |
|
|
|
|
} else { |
|
|
|
|
$('.statusbar .runtime-info').text(''); |
|
|
|
|
} |
|
|
|
@ -154,7 +154,8 @@ |
|
|
|
|
editor.setOptions({ |
|
|
|
|
showPrintMargin: false, |
|
|
|
|
fontSize: '18px', |
|
|
|
|
enableBasicAutocompletion: true |
|
|
|
|
enableBasicAutocompletion: true, |
|
|
|
|
fontFamily: 'Source Code Pro' |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
// set mode
|
|
|
|
|