Package-Request: Evaluate highlight math expressions


#1

Is there a package for evaluating math expression when highlight?

For example, if we have x = 2 & y = 4 then (see upper half of image).

If the answer isn’t trivial, a partial / symbolic solution could be shown instead (see lower half of image).
(maybe even allow for quick jumps to defined partials, eg. show other places in the code where x and y, in this example, is used / defined / occurs / etc…)

(this should work no matter what grammar is being used, maybe allow for white/black-listing grammars)


#2

You’re talking about something way more advanced than just passing to math.js. What you want would have to auto-detect mathematical formulae and retain memory of what the variables are. I suspect that’s so specific that you’d be the first one to try to implement it into Atom.