I had a similar problem when I started with codeblocks, but it was only a problem of the colours set in syntax highlighting.
For fixing that, only go to "Settings->Editor...->Syntax highlighting", select the programing language and then the highlighting type that is going wrong for you, probably "Matching brace highlight" and change the background or the foreground colour.