Skip to content
This repository was archived by the owner on Oct 4, 2024. It is now read-only.

Commit 2c8bf23

Browse files
oliverlinmikelehen
authored andcommitted
Add default language to example monaco file (#314)
1 parent cf9c8c1 commit 2c8bf23

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
fixed - Fixed an issue in the monaco adapter that could cause errors for certain kinds of edits (#312).
2+
feature - Enable comment feature in monaco example by adding default language

examples/monaco.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,12 @@
4444
//// Create Monaco and firepad.
4545
require.config({ paths: {'vs': './../node_modules/monaco-editor/min/vs'}});
4646
require(['vs/editor/editor.main'], function() {
47-
editor = monaco.editor.create(document.getElementById('firepad'));
47+
editor = monaco.editor.create(
48+
document.getElementById('firepad'),
49+
{
50+
language: 'javascript'
51+
}
52+
);
4853
Firepad.fromMonaco(firepadRef, editor);
4954
});
5055

@@ -67,4 +72,4 @@
6772
}
6873
</script>
6974
</body>
70-
</html>
75+
</html>

0 commit comments

Comments
 (0)