You are reading a single comment by @Robin and its replies.
Click here to read the full conversation.
-
Sat 2021.05.29
'I'm not familiar with the code of EspruineWebIDE yet'
The repository:
Here is an online open source solution:
https://beautifier.io/
https://github.com/beautify-web/js-beautify
Hi together, I'd like to bring attention to this topic again. I think it would be really great to have a code formatter available. Not only does it unify our code base e.g. in BangleApps, it can also prevent bugs (for instance, the typical if without braces problems, see https://softwareengineering.stackexchange.com/a/16530). I'm also willing to help implementing this (however, I'm not familiar with the code of EspruineWebIDE yet, so I'd need some help where to get started).