Syntax Highlighting

Noun · Development

Definitions

  1. The display of source code in different colors and font styles based on the grammatical role of each token — keywords, strings, comments, variables — to improve readability and help developers spot errors like unclosed strings or mismatched brackets at a glance.

    In plain English: Color-coding in a code editor that makes different parts of the code easier to read and mistakes easier to spot.

    Example: "I immediately saw the bug because syntax highlighting showed the rest of the file as a string — I'd forgotten a closing quote."

Related Terms