Skip to content

Add ability to link to individual lines of code #2

Open
@TheWebTech

Description

@TheWebTech

The problem - if you are trying to help someone it can be helpful to link someone to a specific line of code in a web page. The browser based highlight feature is useful but not perfect for this use case.

Instead we may be able to leverage Prism's functionality. There may be some challenges though as the ids may not be unique for the code blocks given they live in the shadow DOM. There's also the problem that the page loads with the hash before prism has run. So it may take a moment to kick in.
https://prismjs.com/plugins/line-highlight/

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions