Skip to content
This repository was archived by the owner on Dec 20, 2023. It is now read-only.
This repository was archived by the owner on Dec 20, 2023. It is now read-only.

Add line number selection #69

@jackyzha0

Description

@jackyzha0

Would be nice to be able to create permalinks for pastes too, similar to what GitHub offers: https://docs.github.com/en/github/managing-your-work-on-github/creating-a-permanent-link-to-a-code-snippet

Example URL would be https://ctrl-v.app/2uKMJEu#L1-L14

Good place to start would be the lineProps prop on the syntax highlighter: https://www.npmjs.com/package/react-syntax-highlighter

AC:

  • After a paste has been created, users should be able to click on the line number gutter to highlight/select lines
  • Selecting lines should bring up the option to copy a permalink to those lines
  • Viewing a paste with permalink anchors should highlight those lines

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions