Skip to content

Conversation

@MorphCodeBot
Copy link
Collaborator

This PR adds proper syntax highlighting for PHP variables by configuring the className property.

Changes:

  • Added className: 'variable' to the VARIABLE token definition in src/languages/php.js
  • Variables like $response will now be distinctly highlighted
  • Maintains existing regex pattern for PHP variable identification

Before this change, PHP variables were not highlighted, making code snippets harder to read. After this change, variables are properly highlighted as shown in the ticket's example screenshot.

Tested:

  • Verified variable highlighting works correctly for basic PHP variables
  • Confirmed no impact on other PHP syntax highlighting features

Resolves issue PLAYGROUND-PR-2785

Additional ticket processing details

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants