Skip to content

Research: more nuanced RegEx highlighting #2751

@binyamin

Description

@binyamin

Is your request related to a specific problem you're having?

I have a block of code with a rather long regex. The entire regex is one color.

The solution you'd prefer / feature you'd like to see added

Break a regex into smaller components, maybe with an enclosing .hljs-regexp class. Those components might be general, or regex-specific.

Additional context

(Theme: Nord)
In Highlight.js
image
In VS Code
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    autocloseFlag things to future autoclose.discuss/proposeProposal for a new feature/directionenhancementAn enhancement or new featurehelp welcomeCould use help from communityparsertheme

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions