PrismJS / PrismJS/prism

YAML highlighting issues

Open
#3,586 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

Information

Description
Numbers are inconsistently highlighted at a few places, for example the value 80:80 for property ports under wordpress, value 8000:80 under phpmyadmin, and value 1000:984 for property user under wordpress. There is also inconsistent highlighting for the value Wordpress for property volumes (last line of the code).

Code snippet

Test page

The code being highlighted incorrectly.
Your code goes here

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 with the linked Prism test page and reproduce the YAML examples for 80:80, 8000:80, 1000:984, and Wordpress. Compare the highlighting in the latest Prism version, then update the relevant YAML highlighting behavior and verify that all listed values are highlighted consistently.

Written by the indexing model from the issue text.

Assessment

Tech stack
yaml
Domain
devtools
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.