title: How to embed only certain lines from a gist?
body: <p>Gist lets you embed a gist in a web page:</p>
  
  <pre><code>&lt;script src="https://gist.github.com/dyoo/4627246.js"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>I was hoping I could have it display just a line range subset. (Use case: Write some code for a blog post in a single gist. Reference certain lines throughout the blog post discussing those lines.)</p>
  
  <p>Is this possible?  I can't find it documented, but is there some way to do it?</p>
  
  <hr>
  
  <p>As an example of how I thought it <em>might</em> work, GitHub supports URIs with line numbers. For example, the <code>#L4-L8</code> anchor in this:</p>
  
  <pre><code>https://github.com/twitter/bootstrap/blob/master/docs/base-css.html#L4-L8
  </code></pre>
  
  <p>I realize GitHub shows <em>all</em> lines with just those lines <em>highlighted</em>. Whereas I'm asking how to <em>show</em> just certain lines from a Gist. I mention this just for-example, how I guessed it might work.</p>
  
  <hr>
  
  <blockquote>
    <p>p.s According to <a href="https://stackoverflow.com/questions/14206307/how-do-i-embed-a-single-file-from-a-github-gist-with-the-new-gist-interface">How do I embed a single file from a GitHub gist with the new gist interface?</a>, it sounds like this recently moved in the opposite direction from what I'm asking: The ability to embed just one file from a gist recently disappeared. I want to display just certain lines from just one file. But I wanted to ask anyway. Also I think this is a distinct question from that, which is why I posted this instead of commenting the existing question.</p>
  </blockquote>