There are a few ways of doing this. One is through the use of holograms that are constantly updating their position and text value (requires a rank to do this), another way is by changing the displayed name of the entity to the text display you want (only works on mobs).
Either way, you'll need...