Althought it’s a slightly different feature request, I imagine the implementation might essentially be the same as the request for a snippets feature. If so, perhaps this request could be merged with this one.
(I suppose they could be approached differently. From my point of view, a snippets feature would do the job.)