Compilling error not highlighting line in code
The line in error can often be highlighted, however because of the way the IDE plays with your source file this is not always the case.

See my post about How the IDE organizes things. 

The IDE adds extra lines to your source, and then tries to hide that with #line directives. This can confuse the way error messages are handled. It is another example of the "helpful" IDE not always being helpful.

In any event, as Igor said, you can look for the line number in the error message and use that to find the error. Failing that, look at the quoted source code and search for that.