I have started making homemade yogurt, and I usually keep two types at the same time. One is a lactobacillicus bulgaricus strain, the other is a bifidus strain. They taste differently and look exactly the same - so I usually want to know which one I am taking out of the fridge, but can't tell by looking. I make the yogurt in small jars meant for home canning, and they only come in a single color.   .   Unlike jam, the turnaround time is short, I only make 6 jars per batch of any type, and eat at least one of each type per day. So I want something which survives washing the jars (so not paper labels). I also don't want to make permanent marks on my jars. I have been thinking to start putting something foodsafe in each jar such that it is visible from the outside, but don't have ideas of what this thing should be.   Ideally, the solution should also work for glass clip-lid containers, like these, because I might switch to them:     What is a practical and aesthetically pleasing solution for distinguishing the yogurt types? 
Having marks that are both temporary and durable is a tough combination, because something that can survive a dishwasher will by definition be hard to remove.   Good answers already provided, but I personally prefer the flexibility of being able to label each container however I want every time I use it, to avoid having to keep track of separate types of containers.   I generally use a grease pencil, AKA china marker. They are specifically meant for marking glass and china. They are available in various colors. The markings are easily removed, and will not survive a dishwasher, but would probably survive gentle hand washing. Despite the name they are actually wax-based, not grease-based and are safe for use in the kitchen.   One other advantage of grease pencils is that they can write on a wet surface, which is great when you've got a cold container with condensation on it.   Here's a blog post with a couple of examples of grease pencil use. Apparently writing your name on your wine glass at a party is a thing to do now.  