Turning off Delphi’s Brace Highlighting in Delphi 2010 and Earlier

This morning, I wrote about turning off Delphi’s Brace highlighting because Castalia’s is better. A couple of astute readers pointed out in the comments that the method I described only works in Delphi XE and XE2 – the option isn’t there in Delphi 2010 and earlier. Here’s how I do it in older versions of Delphi:

Right click the code editor and choose “Properties.”

In the options tree, choose Editor Options | Color.

In the “Element” combobox, choose “Brace highlight”

Under “Use defaults for,” check both “Foreground” and “Background,” alternatively, you can set the foreground and background colors to match your plain text settings. If you’re using the default Delphi editor colors, that will be a black foreground and white background.

Turning off parenthesis matching in Delphi 2010

Click “OK.”

While this doesn’t technically disable brace highlighting, it causes the editor to draw the highlighted parenthesis the same way as everything else, so you don’t see the incorrect highlighting.

Doing this won’t affect Castalia’s Parenthesis Matching – it will still work and draw according to the Castalia options you’ve set.

3 Responses to Turning off Delphi’s Brace Highlighting in Delphi 2010 and Earlier

  1. Fritz September 28, 2011 at 3:05 pm #


  2. Alex September 29, 2011 at 9:47 am #

    Can you help. I see issue with TZipFile. Take any OpenOffice file,
    (.odt), try to unpack it: you see content.xml/settings.xml of 0 size. But in archive they NN Kb.
    ( uvviewsoft.com/bb/Acrobat.odt )

    • Alex September 30, 2011 at 7:27 am #

      Posted to QC.

For programmers, by a programmer

Hi. My name is Jacob, and I'm the creator of Castalia.

I starting programming in 1986, learning Lightspeed Pascal on a Mac Classic. Today, I'm a professional programmer, teacher, and entrepreneur.

I have a Master's Degree in Computer Science, and I still love Pascal and Delphi.

I believe that writing code is the heart and soul of software development, and I love helping programmers write code more effectively.