Display the code of preview template scripts

Templater has a functionality to evaluate templates at runtime (in the preview mode) rather that during template expansion. This is super powerful, and can be very handy to research notes. I think it will be also very useful if I could display the code on top of the result. Is there any mechanism for this?