DONE: ability to change highlight/style of unmatched brace
-
- Posts: 350
- Joined: 06 Jun 2012 11:08
DONE: ability to change highlight/style of unmatched brace
Hi Rickard.
I posted a question how to do this but no-one knows the answer, so I guess maybe it's not possible. Please can you look into adding this functionality?
Many thanks.
I posted a question how to do this but no-one knows the answer, so I guess maybe it's not possible. Please can you look into adding this functionality?
Many thanks.
- yereverluvinuncleber
- Posts: 388
- Joined: 20 Apr 2018 09:49
Re: Suggestion: ability to change highlight/style of unmatched brace
Nice idea.
"Noli pati a scelestis opprimi"... or is it "non lacessit illegitimae te carborundum"?
You can find me on Deviantart https://www.deviantart.com/yereverluvinuncleber/gallery/
You can find me on Deviantart https://www.deviantart.com/yereverluvinuncleber/gallery/
- Rickard Johansson
- Site Admin
- Posts: 6783
- Joined: 19 Jul 2006 14:29
Re: Suggestion: ability to change highlight/style of unmatched brace
The foreground and background color for unmatched braces can be changed in the next release (v15.85).
Thanks!
Thanks!
-
- Posts: 350
- Joined: 06 Jun 2012 11:08
Re: DONE: ability to change highlight/style of unmatched brace
Thanks Rickard, I got the v15.85 update and it doesn't seem to be working correctly, specifically the foreground colour doesn't get applied.
Re: DONE: ability to change highlight/style of unmatched brace
FWIW it works for me alright.
I noticed only opening unmatched bracket is highlighted; is it by design?
I noticed only opening unmatched bracket is highlighted; is it by design?
Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
- Rickard Johansson
- Site Admin
- Posts: 6783
- Joined: 19 Jul 2006 14:29
Re: DONE: ability to change highlight/style of unmatched brace
With option to highlight surrounding braces, the background thread first try to find an opening bracket, then find a closing one. If you remove the opening bracket - the thread will find another opening bracket further up in your code and match that one with a closing bracket. So yes, it's by designI noticed only opening unmatched bracket is highlighted; is it by design?

Re: DONE: ability to change highlight/style of unmatched brace
And if it doesn't find it?Rickard Johansson wrote: ↑18 Apr 2023 09:11 If you remove the opening bracket - the thread will find another opening bracket further up in your code and match that one with a closing bracket.
Code: Select all
<?php
)

Alium tibi quaere fratrem; hic, quem tuum putas, meus est. Titus Flāvius Caesar Vespasiānus Augustus
-
- Posts: 350
- Joined: 06 Jun 2012 11:08
Re: DONE: ability to change highlight/style of unmatched brace
If it only works highlighting opening braces without a closing brace, so be it, but it still does not apply the selected foreground colour on unmatched opening braces (for me at least).
-
- Posts: 350
- Joined: 06 Jun 2012 11:08
Re: DONE: ability to change highlight/style of unmatched brace
Hi Rickard, the colouring just isn't being applied for me, can you think of any settings which might be stopping it from working?
Thank you.
Thank you.
-
- Posts: 350
- Joined: 06 Jun 2012 11:08
Re: DONE: ability to change highlight/style of unmatched brace
Any ideas? In my previous post, the opening brace is missing but the highlight is not being applied?
Thanks.
Thanks.
- Rickard Johansson
- Site Admin
- Posts: 6783
- Joined: 19 Jul 2006 14:29
Re: DONE: ability to change highlight/style of unmatched brace
I'm a bit occupied with other things at the moment, but I'll see if I can fix it in next release (v15.90).
- Rickard Johansson
- Site Admin
- Posts: 6783
- Joined: 19 Jul 2006 14:29
Re: DONE: ability to change highlight/style of unmatched brace
I can't reproduce this or see anything that would cause this, unless you've modified the syntax file.
I did make a small improvement to use the error foreground color as font color with all options (underline, frame...).
I did make a small improvement to use the error foreground color as font color with all options (underline, frame...).
-
- Posts: 350
- Joined: 06 Jun 2012 11:08
Re: DONE: ability to change highlight/style of unmatched brace
That was for All Languages, I'll try setting it per language...