repl: add option to display line numbers
This commit is contained in:
parent
11733d5e05
commit
0c2147d9c5
5 changed files with 30 additions and 13 deletions
|
|
@ -104,6 +104,7 @@ export default function CodeMirror({
|
|||
onSelectionChange,
|
||||
theme,
|
||||
keybindings,
|
||||
isLineNumbersDisplayed,
|
||||
fontSize = 18,
|
||||
fontFamily = 'monospace',
|
||||
options,
|
||||
|
|
@ -148,6 +149,7 @@ export default function CodeMirror({
|
|||
onCreateEditor={handleOnCreateEditor}
|
||||
onUpdate={handleOnUpdate}
|
||||
extensions={extensions}
|
||||
basicSetup={{ lineNumbers: isLineNumbersDisplayed }}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue