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.
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.