Format hovered text