What is Nostr?
glow /
npub1xsu…lm7j
2024-02-06 15:27:40

glow on Nostr: I personally indent with “⬜” and use a custom plugin that removes it before ...

I personally indent with “⬜” and use a custom plugin that removes it before compilation. Different colors for different indentation levels.

function someFunc(){
⬜for (let i = 1; i <= 3; i++) {
⬜🟦console.log(`Outer loop iteration ${i}`);
⬜🟦for (let j = 1; j <= 2; j++) {
⬜🟦🟥console.log(` Inner loop iteration ${j}`);
⬜🟦🟥if(j == 3){
⬜🟦🟥🟨continue
⬜🟦🟥}
⬜🟦}
⬜}
}
Author Public Key
npub1xsupx60c2ekcpeqgytkvwnh8cmpscse409t78uhx2dhs20l3yuyqnvlm7j