Skip to content

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.

2 participants