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

New Match Braces plugin #1944

Merged
merged 5 commits into from
Sep 4, 2019
Merged

Conversation

RunDevelopment
Copy link
Member

This adds a new plugin for highlighting matching braces to Prism.

Sometimes it's hard to find the partner of a brace which is why most IDEs highlight the brace pair when the text cursor is next to one of the braces.
Since Prism isn't a text editor, I opted for highlighting brace pair on hover and on click.

I also added a simple rainbow braces mode.

Examples

image

image

@mAAdhaTTah
Copy link
Member

This is sweeeeeeeeeeeeeet. I am working on an editor with prism (it's tied up in another plugin) so this would be cool to integrate. Will need to take a pass through.

@RunDevelopment RunDevelopment merged commit 365faad into PrismJS:master Sep 4, 2019
@RunDevelopment RunDevelopment deleted the match-braces branch September 4, 2019 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants