Search results
27 paź 2022 · Click the line number, and then copy and paste the link from the address bar. To select a range, click the number, and then shift click the later number. Alternatively, the links are a relatively simple format, just append #L<number> to the end for that specific line number, using
6 sie 2013 · If you go the the file (or version of the file you want to refer to), click the line number (or hold shift down to select a range). => you will see that the URL changes (it adds something like #L21-L23 to the URL).
You can link to a specific line in the Markdown file the same way you can in code. Append #L with the line number or numbers at the end of the url. For example, github.com/<organization>/<repository>/blob/<branch_name>/README.md?plain=1#L14 will highlight line 14 in the plain README.md file.
You can link to a specific line in the Markdown file the same way you can in code. Append #L with the line number or numbers at the end of the url. For example, github.com/<organization>/<repository>/blob/<branch_name>/README.md?plain=1#L14 will highlight line 14 in the plain README.md file.
4 mar 2017 · When sending URLs that link to files on github you may want to reference a specific line number or block of code. The people receiving your code snippets will appreciate these nice highlights, and (subconsciously or not) they'll be thinking, "damn, he's good".
You can create a permanent link to a specific line or range of lines of code in a specific version of a file or pull request. For more information, see " Creating a permanent link to a code snippet ."
This is very simple to do. On any GitHub page, click on a line number to the left of the code. Notice the URL is now appended with the line number you selected ( e.g. https://github.com/.../functions.php#L117) . Visiting this link will take you to the exact line of highlighted code.