Pretty sure most things show their invincibility as a icon buff. There's also a unique sound cue when you're hitting something invulnerable.

Flying text is not really that reliable in the first place as it's one of the first things that get filtered out should there be too many things to render.