Kile has the ability to look for and highlight different types of code. For example, LATEX commands are distinguished from normal text, and formulas too are highlighted in a different color.