The concentrated food color is a great thing. I never tried it on rats. A dab on the head would probably work.
When I marked holdback females, I notched ears at the crawler stage. Sorry, but it didn't seem to hurt them, marked them effectively, and had no seen adverse effect. In fact, some of the last 10 rats I have are those females.