mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-29 02:53:47 +01:00
Normal netscript supported functions now highlighted in different color
This commit is contained in:
parent
19b861c4f7
commit
68fcc12ac8
905
dist/bundle.js
vendored
905
dist/bundle.js
vendored
File diff suppressed because one or more lines are too long
@ -1,5 +1,6 @@
|
||||
var ace = require('brace');
|
||||
require('brace/mode/javascript');
|
||||
require('brace/mode/netscript');
|
||||
require('brace/theme/chaos');
|
||||
require('brace/theme/chrome');
|
||||
require('brace/theme/monokai');
|
||||
@ -44,7 +45,7 @@ function scriptEditorInit() {
|
||||
|
||||
//Initialize ACE Script editor
|
||||
var editor = ace.edit('javascript-editor');
|
||||
editor.getSession().setMode('ace/mode/javascript');
|
||||
editor.getSession().setMode('ace/mode/netscript');
|
||||
editor.setTheme('ace/theme/monokai');
|
||||
document.getElementById('javascript-editor').style.fontSize='16px';
|
||||
editor.setOption("showPrintMargin", false);
|
||||
|
Loading…
Reference in New Issue
Block a user