Skip to content

Glossary

Syntax highlighting

Syntax highlighting displays source code in different colours and fonts according to the role each token plays — keywords, strings, numbers, comments and identifiers. Driven by a grammar for the language, it does not change the code's meaning but makes structure easier to scan, helping readers spot errors and understand code faster.