OsrsNeedsF2P@lemmy.ml to Programmer Humor@lemmy.ml · 3 years agoThis is not a meme, I was trying to find content for an OC /c/programmerhumor post and found thisi.imgur.comexternal-linkmessage-square57linkfedilinkarrow-up141arrow-down10
arrow-up141arrow-down1external-linkThis is not a meme, I was trying to find content for an OC /c/programmerhumor post and found thisi.imgur.comOsrsNeedsF2P@lemmy.ml to Programmer Humor@lemmy.ml · 3 years agomessage-square57linkfedilink
minus-squareedward@lemmy.mllinkfedilinkarrow-up4·edit-23 years agoGenerally aligning stuff isn’t nice. But if you do, it’s tabs up to whatever level of indentation you’re at then spaces the rest of the way. The tabs and spaces have different semantic meaning (indent vs alignment) so mixing them makes sense. (Dashes for tabs, * for spaces) <form> —<input type=“text” —*******class=“whatever” /> </form> Although really just adding a level of indent is better than aligning. <form> —<input type=“text” ——class=“whatever” /> </form>
Generally aligning stuff isn’t nice. But if you do, it’s tabs up to whatever level of indentation you’re at then spaces the rest of the way. The tabs and spaces have different semantic meaning (indent vs alignment) so mixing them makes sense.
(Dashes for tabs, * for spaces)
<form> —<input type=“text” —*******class=“whatever” /> </form>Although really just adding a level of indent is better than aligning.
<form> —<input type=“text” ——class=“whatever” /> </form>