Skip to content

Commit fa26548

Browse files
authored
Clarified that permanent links can include column ranges
Added a clarification note explaining that users can create permanent links to specific columns within a line, and that column-level links may not work in all browsers. Fixes issue #40794.
1 parent 9b1dd76 commit fa26548

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

content/get-started/writing-on-github/working-with-advanced-formatting/creating-a-permanent-link-to-a-code-snippet.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: Creating a permanent link to a code snippet
3-
intro: 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.
3+
intro: You can create a permanent link to a specific line, range of lines, or even a range of columns in a file in a specific version of a file or pull request. When you select part of the code, GitHub automatically generates a link that includes line or column references (for example, `#L2C4-L2C16`).
4+
45
product: '{% data reusables.gated-features.markdown-ui %}'
56
redirect_from:
67
- /github/managing-your-work-on-github/managing-your-work-with-issues-and-pull-requests/creating-a-permanent-link-to-a-code-snippet
@@ -20,6 +21,8 @@ shortTitle: Permanent links to code
2021

2122
This type of permanent link will render as a code snippet only in the repository it originated in. In other repositories, the permalink code snippet will render as a URL. This does not work in Markdown files, only in comments.
2223

24+
> **Note:** Column-level links (like `#L2C4-L2C16`) may not be supported in all browsers or views yet.
25+
2326
![Screenshot of an issue comment. A code snippet has a header that lists the file name and line numbers, and a body that lists the code on those lines.](/assets/images/help/repository/rendered-code-snippet.png)
2427

2528
> [!TIP]

0 commit comments

Comments
 (0)