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
|
|
@ -105,7 +105,7 @@ export function Repl({ embedded = false }) {
|
|||
const [lastShared, setLastShared] = useState();
|
||||
const [pending, setPending] = useState(true);
|
||||
|
||||
const { theme, keybindings, fontSize, fontFamily } = useSettings();
|
||||
const { theme, keybindings, fontSize, fontFamily, isLineNumbersDisplayed } = useSettings();
|
||||
|
||||
const { code, setCode, scheduler, evaluate, activateCode, isDirty, activeCode, pattern, started, stop, error } =
|
||||
useStrudel({
|
||||
|
|
@ -271,6 +271,7 @@ export function Repl({ embedded = false }) {
|
|||
theme={themes[theme] || themes.strudelTheme}
|
||||
value={code}
|
||||
keybindings={keybindings}
|
||||
isLineNumbersDisplayed={isLineNumbersDisplayed}
|
||||
fontSize={fontSize}
|
||||
fontFamily={fontFamily}
|
||||
onChange={handleChangeCode}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue