News for hackers. Stuff that matters.
Re:Lexical differential highlighting instead of syntax highl... by lifthrasiir on Thursday July 11, 2019 @09:48PM (#20417441)
[1] was a similar idea where color is determined by the prefix, so for example `currentIndex` and `randomIndex` are distinguished from each other but `currentIndex` and `currentIdx` are not.

I'm not sure about both because, i) there are only a handful number of mutually distinguishable colors ([1] does mention the same complication), ii) we often want to highlight both the similarity and difference among identifiers and the cutoff is not clear. For i) we may want to leverage more formattings; for ii) I really don't have a good solution.

[1] https://medium.com/@evnbr/coding-in-color-3a6db2743a1e

There are no comments on this comment yet.