Re:Literate programming is much more than just commenting code
by ParetoOptimal on Wednesday March 23, 2022 @02:04AM
(#30775469)
> they assume the documentation is the source of truth and that the tangling will leave artifacts in code.
Leo avoids this by keeping a "shadow copy" of the artifacts or annotations and doing a diff on detangling between all 3 versions.
I wrote a PoC of a tangling tool that worked through "virtual" files and had a syntax aware handler, there's enough information that it could possible work with language servers too, but sadly I haven't had time to take things further: https://gitlab.com/lusher/tanglemd