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
⬜🟦🟥}
⬜🟦}
⬜}
}
Published at
2024-02-06 15:27:40Event JSON
{
"id": "1070c2f6082b67bd019f96ed4acf1f87a3f0ceffcca0f91a58e32062a6b9bb65",
"pubkey": "34381369f8566d80e40822ecc74ee7c6c30c43357957e3f2e6536f053ff12708",
"created_at": 1707233260,
"kind": 1,
"tags": [
[
"proxy",
"https://blob.cat/objects/f70f261d-54a2-4582-8255-7e776ce7d029",
"activitypub"
]
],
"content": "I personally indent with “⬜” and use a custom plugin that removes it before compilation. Different colors for different indentation levels.\n\nfunction someFunc(){\n⬜for (let i = 1; i \u003c= 3; i++) {\n⬜🟦console.log(`Outer loop iteration ${i}`);\n⬜🟦for (let j = 1; j \u003c= 2; j++) {\n⬜🟦🟥console.log(` Inner loop iteration ${j}`);\n⬜🟦🟥if(j == 3){\n⬜🟦🟥🟨continue\n⬜🟦🟥}\n⬜🟦}\n⬜}\n}\n",
"sig": "f80b730e5a3efb51e0f6824c2eef4c0af369d622e04fa85b5f7346ab92bf1ce8cc0aa6c49d7b9e5865b4a0638b72f6f2e773edfbae6ce3e492ee1ca73e257dc9"
}