Hi,
At fosdem I’ll present an interface for navigating formulas and numbers that uses codemirror. Draft is at:
https://calculang-at-fosdem.pages.dev/example
I kindof hurried this!
There is navigation through click handlers on identifiers and overlays. This works for code which is small - and my code is generally small - so the whole DOM is available, but it doesn’t work when CodeMirror cuts the code which is rendered to DOM, in some of my examples.
For development I found the VP.Margin constant in view and via devtools in a local source override I make it 100x:
Obviously, this isn’t good for distribution.
Is there a better way to get CodeMirror to render an entire sourcecode to DOM?
Thanks,
Declan