Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(php) variables should be highlighted as variable #2778

Closed
afilina opened this issue Oct 21, 2020 · 1 comment · Fixed by #2785
Closed

(php) variables should be highlighted as variable #2778

afilina opened this issue Oct 21, 2020 · 1 comment · Fixed by #2785
Labels
bug good first issue Should be easier for first time contributors help welcome Could use help from community language

Comments

@afilina
Copy link

afilina commented Oct 21, 2020

Describe the issue
PHP variables are not highlighted. Most of my code snippets are quite unreadable because of that.

Which language seems to have the issue?
PHP

Expected behavior
(ignore the background)
image

Actual behavior
image

Additional context
I can live without semicolons, but variables in PHP are critical.

@afilina afilina added bug help welcome Could use help from community language labels Oct 21, 2020
@afilina afilina closed this as completed Oct 21, 2020
@joshgoebel
Copy link
Member

A PR would be welcome, this should be a one line fix.

@joshgoebel joshgoebel added the good first issue Should be easier for first time contributors label Oct 21, 2020
@joshgoebel joshgoebel changed the title PHP no variable highlighting (php) variables should be highlighted as variable Oct 21, 2020
taufik-nurrohman added a commit to taufik-nurrohman/highlight.js that referenced this issue Oct 24, 2020
taufik-nurrohman added a commit to taufik-nurrohman/highlight.js that referenced this issue Oct 25, 2020
joshgoebel pushed a commit that referenced this issue Oct 27, 2020
Resolves #2778.

* Also modernize a bit.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug good first issue Should be easier for first time contributors help welcome Could use help from community language
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants