As mouse said, highlight a unit or building.
Green outline = your unit
Yellow = allies unit
Red = enemy unit.
Alternatively, if you're under pressure, just move/ attack/ patrol up to the target unit. The program will automatically attack the unit if it's the enemy.
Regards,
Lone Starr