You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use line numbers as fragment identifiers to point a specific line, like what GitHub has. It will be very convenient and useful to be able to refer to a specific line in the code.
Description
Just like in GitHub's code previews, when I click on a line number, a fragment identifier of #LXXX is appended to the URL. For example, if I click on line 16, "#L16" is appended to the existing URL.
I can use fragment identifiers to point to a specific line, when I visit a URL with a fragment identifier.
It will be a little tricky, when several code blocks are present on the same webpage. For example, if I have 2 code blocks (with more than 5 lines of code in each), when I want to refer to line 5 in the second code block, it will be a little tricky. There must exist some other form of identification/reference to distinguish among different code blocks. GitHub doesn't have this issue, because, I believe, GitHub only displays one code block on a webpage.
The text was updated successfully, but these errors were encountered:
Motivation
Use line numbers as fragment identifiers to point a specific line, like what GitHub has. It will be very convenient and useful to be able to refer to a specific line in the code.
Description
Just like in GitHub's code previews, when I click on a line number, a fragment identifier of #LXXX is appended to the URL. For example, if I click on line 16, "#L16" is appended to the existing URL.
I can use fragment identifiers to point to a specific line, when I visit a URL with a fragment identifier.
It will be a little tricky, when several code blocks are present on the same webpage. For example, if I have 2 code blocks (with more than 5 lines of code in each), when I want to refer to line 5 in the second code block, it will be a little tricky. There must exist some other form of identification/reference to distinguish among different code blocks. GitHub doesn't have this issue, because, I believe, GitHub only displays one code block on a webpage.
The text was updated successfully, but these errors were encountered: