PrismJS / PrismJS/prism

Highlight line should provide a parameter for tooltip

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

Nobody has claimed this yet.

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

Description

It would be a nice enhancement, if the highlighting of lines plug-in would have the possibility to provide an optional tooltip that describes the reason why the lines are highlighted.

Maybe my use case is not typical, but I would like to include PrismJS in my Jenkins static code analysis plugins to visualize source code and associated warnings. I.e., you see the source code, the line that contains a warning and - what is currently missing in PrimsJS - the description of the warning (output of lint, findbugs, etc.).

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

Locate the line-highlighting plugin entry point and review how highlighted lines are configured and rendered. Use the Jenkins static-analysis warning example to determine the expected optional tooltip behavior, then verify that highlighted lines work both with and without tooltip text.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.