News for hackers. Stuff that matters.
Re:Monospaced Programming Fonts with Ligatures by kpil on Friday July 21, 2017 @05:36PM (#14823893)
Here is a thought.

Maybe no formatting characters should be allowed to be saved embedded in source code, and instead presentation filters should handle everything related to formatting, documentation, etc.

It might work..

Re:Monospaced Programming Fonts with Ligatures by hobo_mark on Friday July 21, 2017 @08:52PM (#14824818)
Git supports custom "clean/smudge" filters on push and pull exactly for this sort of things. Unfortunately neither github not gitlab consider them so your online diffs would look like a mess of you did that.
Re:Monospaced Programming Fonts with Ligatures by CapacitorSet on Friday July 21, 2017 @09:36PM (#14824951)
It looks interesting, but then one would have to define a normalization for the AST - either something like an XML printout of the AST, or a standard formatting for source code (perhaps whitespace-only minification?). It would also pose an issue when presenting code in "dumb" media (eg. a txt file).