3 ms·
ligatures in source code? It seems as soon as I use a non-fixed width font, then indenting and other code formatting becomes tricky. Bjarne Stroustrup uses a pr
by waynecochran 9y ago
ligatures in source code? It seems as soon as I use a non-fixed width font, then indenting and other code formatting becomes tricky. Bjarne Stroustrup uses a proportional spaced font in his C++ book and I hate it.
- erik-g 9y agoThere are ligatures in fixed-width fonts[0], like VSCode with the Fira Code font! I've been using it for a week or two now and like it so far. [0] HN discussion: https://news.ycombinator.com/item?id=14821446 https://news.ycombinator.com/item?id=14821446
- _asummers 9y agoThere was a whole discussion about ligatures in programming fonts here [0] a few weeks ago. [0] https://news.ycombinator.com/item?id=14821446 https://news.ycombinator.com/item?id=14821446
- mzzter 9y agoYes, specifically ligatures in fixed-width fonts like erik-g mentioned. My personal favorite is Hasklig[0], which is based on Source Code Pro. [0]: https://github.com/i-tu/Hasklig https://github.com/i-tu/Hasklig
- waynecochran 9y agoOkay then ... does look good ... I assume that normal ascii is used under the hood and that is what the lexical analyzer sees. I am open minded -- of course it has to work with emacs -- I am not that open minded ;)
- Uehreka 9y agoIt's just a font, the underlying text is still the same no matter what font you use to render it. In fact, you could set Fira Code (or Hasklig) as the font for your terminal and (as long as your terminal app can render ligatures) it would render in emacs or any terminal-based editor.