Skip to content

Commit

Permalink
disable minimap and set theme to dark
Browse files Browse the repository at this point in the history
  • Loading branch information
heldersepu committed Mar 23, 2024
1 parent 51aeb98 commit 45c7631
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/core/syntax-highlighting.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@ const options = {
lightbulb: { enabled: false },
renderValidationDecorations: "off",
renderWhitespace: "all",
quickSuggestions: false
quickSuggestions: false,
minimap: { enabled: false },
}

export function SyntaxHighlighter({language, className, style, code}) {
Expand Down Expand Up @@ -100,6 +101,15 @@ export function SyntaxHighlighter({language, className, style, code}) {
}
}

return (<Editor onMount={handleEditorDidMount} width={width} className={className} options={options}
defaultLanguage={language} defaultValue={code} />);
return (
<Editor
onMount={handleEditorDidMount}
width={width}
theme="vs-dark"
className={className}
options={options}
defaultLanguage={language}
defaultValue={code}
/>
);
}

0 comments on commit 45c7631

Please sign in to comment.