Emission lines from hot gases were first discovered by Ångström, and the technique was further developed by David Alter, Gustav Kirchhoff and Robert Bunsen.
See the history of spectroscopy for details.