Author Topic: Brace matching highlights  (Read 196 times)

ebbe

  • Community Member
  • Posts: 32
  • Hero Points: 2
Brace matching highlights
« on: February 03, 2023, 09:56:48 am »
Hi

I've noticed something that I find a bit strange. Take the following piece of Python code:
Code: [Select]
digits = 3
name = "basename"
number = 42

result = f"{name}_{number:0{digits}}
When I place the cursor such that a set of curly brackets is highlighted, that set of brackets is shifted slightly downwards (see attached pictures).

Is this on purpose?

(SE is latest version with all hotfixes)

Dennis

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 3816
  • Hero Points: 500
Re: Brace matching highlights
« Reply #1 on: February 03, 2023, 01:49:47 pm »
This has to do with how bold is rendered in your font (on your platform).  You can turn off the Bold option for brace highlighting by going to Tools > Options... > Appearance > Colors > Highlighting > Block Matching

ebbe

  • Community Member
  • Posts: 32
  • Hero Points: 2
Re: Brace matching highlights
« Reply #2 on: February 03, 2023, 02:17:03 pm »
Thanks for clearing that up.

In case somebody else runs into this: I use the MesloLGM Nerd Font Mono, mostly because I need a Nerd font for Powershell and Bash (where I use oh-my-posh) and I like how this one looks.