Heres a quick and easy tip to highlight selected lines in a GitHub repo file when you link to it.

Lets say you want to link to a specific file in a GitHub repo but its a huge file and you specifically want someone to see a certain section. You could always just say “hey check out lines 25-30” but thats annoying. Instead you can include querystring parameters in the URL that will highlight a block of lines that you want:

Original url:

Same url with lines 18 thru 24 highlighted: