Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified src/assets/playground.wasm
Binary file not shown.
21 changes: 21 additions & 0 deletions src/editor/cm6-setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,27 @@ export function createReadOnlyEditor(
themeCompartment.of(theme === "dark" ? oneDark : []),
EditorState.readOnly.of(true),
EditorViewCore.editable.of(false),

EditorView.theme({
"&": {
fontSize: "14px",
fontFamily:
"'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', monospace",
},
".cm-content": {
padding: "16px",
},
".cm-editor": {
borderRadius: "4px",
border: "1px solid var(--border-color, #e1e5e9)",
},
".cm-scroller": {
borderRadius: "4px",
},
".cm-line": {
lineHeight: "1.4",
},
}),
];

const state = EditorState.create({
Expand Down
10 changes: 10 additions & 0 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,16 @@
>
TYPES
</button>
<button
class="stage-button"
role="tab"
aria-selected="false"
aria-controls="formatted-panel"
id="formattedBtn"
tabindex="-1"
>
FORMATTED
</button>
</div>
</div>
<div class="output-content" role="tabpanel" id="outputContent" aria-labelledby="diagnosticsBtn">
Expand Down
Loading