Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Please document the URL fragment format for referencing line and column ranges such as L1C2-L1C4 #40794

Open
Labels
contentThis issue or pull request belongs to the Docs Content team get startedContent related to "Getting Started" doc set
@babenek

Description

Code of Conduct

What article on docs.github.com is affected?

Hello.
It appears that GitHub supports URL fragments for linking to specific lines in code (e.g., #L1-L2).
However, there is no official documentation for linking to specific columns within lines (e.g., #L2C4-L2C16).

Could you please clarify whether this format is supported, and if so, document its usage for both lines and columns in code files (even it is experimental)?

Unfortunately even GitHub copilot does not know the feature but has kindly provided the way to create the issue :)

Thank you.

What part(s) of the article would you like to see updated?

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

  • there are no info about column selection support

Additional information

Example: https://github.com/github/docs/blob/main/README.md?plain=1#L2C4-L2C16

Image

This is the best way to pinpoint a problem spot, especially in a very long line.

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content team get startedContent related to "Getting Started" doc set

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /