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

Built-in matching braces highlightiing #208

Open
pyscripter opened this issue Mar 18, 2022 Discussed in #207 · 0 comments
Open

Built-in matching braces highlightiing #208

pyscripter opened this issue Mar 18, 2022 Discussed in #207 · 0 comments

Comments

@pyscripter
Copy link
Contributor

pyscripter commented Mar 18, 2022

Discussed in #207

Originally posted by pyscripter March 18, 2022
I propose to add matching-braces highlighting functionality into SynEdit, implemented with indicators:

  • TSynCustomHighlighter gets two attributes MatchingBraceAttri, UnbalancedBraceAttri and a Braces property ('()[]{}<>')
  • TSynEditorOption gets a new member eoHighlightMatchingBraces
  • TSynEdit.SetCaretXYEx and TSynEdit.LinesChanged clear existing matching brace indicators and check for new ones if a highlighter is attached and eoHighlightMatchingBraces is set.

Given, that we use highlighter attributes, this would allow to set Foreground, Background color and font style for matching braces, but not say painting a rectangle around the matching braces.

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

No branches or pull requests

1 participant