Is he flirting?

If ur co-worker, a married guy talks 'bout you matching your socks with your dress, asks questions about your family, texts you to talk about professional stuff almost everyday, talks 'bout how he likes the state where men can have several women for themselves, makes jokes and tries to make you laugh in the middle of some serious work (all in places where you two are alone) does that mean he flirts with ya?

He's 10y older, more like a teacher to me than a co-worker. He's not a jerk, at least he doesn't seem to be one. Everyone thinks he is a sophisticated and respectful guy, as do I.