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

Add code reformatting/indent to REPL #164

Open
rlaferla opened this issue Jan 16, 2020 · 0 comments
Open

Add code reformatting/indent to REPL #164

rlaferla opened this issue Jan 16, 2020 · 0 comments
Labels

Comments

@rlaferla
Copy link

PROBLEM:
I use the REPL frequently and perhaps my sveltejs/svelte-repl#1 complaint is that the indentation gets out of whack after a while and the code becomes unreadable. I then have to copy the code to a local editor, reformat/indent it and then paste it back.

SOLUTION:
Add a button that reformats/reindents the code to prettify it.

IDEAS:
Perhaps, the code in this post could be used as a starting point:

https://stackoverflow.com/questions/26360414/javascript-how-to-correct-indentation-in-html-string

@Rich-Harris Rich-Harris transferred this issue from sveltejs/svelte-repl Dec 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants