Skip to content

Commit 7e8e530

Browse files
committed
feat: update Monaco Editor layout and add example code snippets for JSON and JavaScript
1 parent ca5da33 commit 7e8e530

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

app/monaco-editor/monaco-editor.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,17 @@
11
:host {
22
display: grid;
33
grid-template-rows: auto 1fr;
4+
grid-template-columns: 1fr 1fr;
45
padding: var(--padding);
56
width: 100%;
67
height: 100%;
78
overflow: hidden;
89
}
910

11+
app-header {
12+
grid-column: 1 / -1;
13+
}
14+
1015
#editor-wrapper {
1116
height: 100%;
1217
width: 100%;
Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
11
<app-header><h2>Monaco Editor</h2></app-header>
2-
<monaco-editor></monaco-editor>
2+
3+
<monaco-editor data-language="json" data-theme="vs-dark">
4+
{
5+
"name": "John Doe",
6+
"age": 30
7+
}
8+
</monaco-editor>
9+
10+
<monaco-editor data-language="javascript" data-theme="vs-light">
11+
console.log('Hello, World!');
12+
</monaco-editor>

0 commit comments

Comments
 (0)