MHN
Add a comment on Hacker News →
1 of 141 comments
  1. I love the concept of lexical differential highlighting [0] (discussed here [1]). It makes reading math so much easier, especially in dense code. However I don't know of any editor that implements a feature like this.

    If you paste the following code into the example block in [0] you can see how useful this can be:

        while (b - a).abs() > EPSILON {
            let c = a + (a - b) * f_a / (f_b - f_a);
            let f_c = J(c);
            if f_c * f_b == 0.0 {
                a = b;
                f_a = f_b;
            } else {
                f_a /= 2.0;
            }
            b = c;
            f_b = f_c;
        }
    
    [0]: https://wordsandbuttons.online/lexical_differential_highligh...

    [1]: https://news.ycombinator.com/item?id=20414528