Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to set code in LiveEditor that isn't used? #329

Open
stephyswe opened this issue Sep 12, 2022 · 2 comments
Open

how to set code in LiveEditor that isn't used? #329

stephyswe opened this issue Sep 12, 2022 · 2 comments

Comments

@stephyswe
Copy link

code: `class MarkdownEditor extends React.Component {\n\tconstructor(props) {\n\t\tsuper(props);      

image

Yes. I'm re-creating reactjs.org website. its been a real joy so-far :)

@stephyswe
Copy link
Author

ah found one way. edit the theme with plain: {tabSize: '12px' } , neat :)

@stephyswe
Copy link
Author

stephyswe commented Sep 12, 2022

is it possible to add code that doesn't run in live editor?
example:

import styled from 'styled-components'
const Header = () => {
return <div>text</div>
}

and only run the const code, and not the import line.

@stephyswe stephyswe changed the title how to set indention on tabs? Default seems to be 4. how set 2? how to set code in LiveEditor that isn't used? Sep 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant