code line fragment
This article is a stub. You can help the IndieWeb wiki by expanding it.
A code line fragment is an experimental way of linking to a part of a longer code snippet located at a specific url. Code line fragments are based on previous work on media fragments and fragmentions as well as based on the way GitHub allows code line linking to Gists.
Brainstorming
This is experimental so everything is currently just brainstorming. The idea is in the same way that you can link to a part of media using media fragments, you should be able to link to parts of code snippets. Using GitHub, you can link to sections of code by appending the url hash #L followed by the line number, and you can even choose a range by doing #L1-L5. Taking that previous art as inspiration, Eddie Hinkle has implemented an experimental version of this on his website.