I have code blocks that are the same across multiple files. I would like to keep them in sync/link them together: changing one block leads to changes in blocks across files automatically. I wonder whether there is an add-on that would allow me to do so, or how you would go about that.
(The obvious solution would be to wrap the shared code into a function. However, that does not suit my needs here.)