Modify Reference Macro

Hey there

I would like to modify the reference macro in my text so that instead of displaying just the number of the item it is referencing, that it displays the item-type (Theorem, Lemma, Example, …) and the number.

I.e. something like: … see Theorem 1.19. …

I found this entry, but as I am quite new to texmacs I would be glad if somebody can translate this into hardcode, so I can copy.

Any help is welcome, thank you very much in advance.