To select the edges of the text in Photoshop, open the “Edit” – “Stroke” menu and specify parameters such as stroke color, width, etc.
If the text is not rasterized, then you must first open the “Font” – “Rasterize Text Layer” menu, and then stroke.