3 ms·
I've made a web based editor (https://webide.se/ https://webide.se/) that does automatic indentation. You can copy any JavaScript code into it and it will parse
by z3t4 5y ago
I've made a web based editor (https://webide.se/ https://webide.se/) that does automatic indentation. You can copy any JavaScript code into it and it will parse and indent. When using other editors i find it annoying to have to manually manage indentation and I do not miss the syntax errors that comes when there is a block mismatch and you have to figure out where that missing } should be...
There are languages like Python that uses "significant white space" where there are no curly braces and instead you use indentation to decide where a block ends.
The problem with Python is that my editor has no way to know