PrismJS / PrismJS/prism

Feature request - Line Highlight Plugin JS API

Open
#1,093 2 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement good first issue plugins
Dominant language
JavaScript
Stars
13k
Forks
1.4k
Avg merge
15h 36m
Merged PRs (30d)
3

Description

Hello

Instead of removing the highlighter and changing data-line attr, I would love to have a method in the Line highligth to select lines. It makes sense to me for this plugin to have this kind of method, instead of hashlinking ( don't get me wrong, hashlinking has its uses ).

Thanks :D

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the Line Highlight plugin and its existing hash-linking behavior. Determine how a public method could select lines without removing the highlighter or changing the data-line attribute, then define tests that demonstrate the requested selection behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.