How about if a numbered heading gets automatically added to code blocks (Code Block #1:) so the block you want to download could be specified? To download multiple blocks as one file, you could separate the numbers with commas. I don't know enough about how people here use inline code, but my hunch is that it shouldn't be included. If it is included, the numbered heading should be inline too.
Comment on Re: Multiple <code> segments with d/l code, <nocode> idea