4 ms·
To me, ligatures in programming always file like a kind of syntax highlighting if that worked on the character level rather than the token level. Suppose given
by gvx 6y ago
To me, ligatures in programming always file like a kind of syntax highlighting if that worked on the character level rather than the token level. Suppose given `difficulty = 3` your editor would highlight the `if`. That's how these ligatures feel to me.
- indentit 6y agoBut most text editors don't render ligatures if the characters span token boundaries. Sublime Text at least doesn't.
- SamBam 6y agoThat doesn't usually happen, though. For example, if you type three '=' symbols in Firas Code or JetBrains Mono, you get ≡, but if you type a fourth '=' it snaps back to '===='. I can invent some odd situations where I get a ligature in the middle of a string, but in actual coding (for me 80% JS, 10% HTML/CSS and 10% Ruby) I simply don't see any incorrect ligatures.