I recently posted a question which contained a reference from code posted on another site. In order to not use only link from the other side, I put a code snippet aside the link (this way, in case the link ever gets broken, the code will be still available in the question).
I had a problem with a very minor change in the code which I explained exactly where and also added a code-block describing the specific change. But, the snippet itself was very large and made the question appear very long. I could cut off some of the code but I think I would much prefer it if I could just put the snippet without all the code copied to the question and only visible for view/edit for those who really want to answer. This way the reference to the external link would remain much more "whole" but still allowing to focus on what's important in the question.