Syntax highlighting is where a text editor, integrated development environment or other computer program shows different parts of some source code in different colours. This makes it easier for computer programmers to read the source code and understand what it does. It can be done in different colors, and different programming languages have different rules about what parts of the source code need to be different colors.