My gut stance is that an editor should not edit a question to include the source that is referenced by a link in the question, as that changes the question. I typically want to encourage posters to follow the site guidelines themselves and have them update the questions, themselves, to include the source code when appropriate.
But in trying to find a community resource related to this, I found the general Edit questions and answers page which has:
Some common reasons to edit are:
to fix grammatical or spelling mistakes **to clarify the meaning of a post without changing it** to correct minor mistakes or add addendums / updates as the post ages to add related resources or hyperlinks
My initial reaction is that changing the question to include the linked to source changes the post, but then again in that case all you are really doing is making it so that other users don't have to go to an offline resource to get the info. And not encouraging the OP to do it themselves.
So I guess I'm looking for community feedback on this.