PrismJS / PrismJS/prism

Catch hover event

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

Nobody has claimed this yet.

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

Description

I was wondering what is the way to catch the hover event on some specific line. I use the line-highlight plugin, so I can see there are some <div aria-hidden="true"> in the element tree, which correspond to the highlighted lines. I try to bind hover events to them but it doesn't work.

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

The issue names the line-highlight plugin and generated

elements, but no source file or test. Start by tracing how the plugin creates those elements and how hover events are handled, then determine whether the supported behavior needs documentation or a code change. Done should mean a clear, tested way to respond to hovering a highlighted line.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.