go-v.orgcodex
Menu
Page tools

codex · Philosophy

Syntax highlighting

Diagram for Syntax highlighting
Syntax highlighting is a feature of text editors that is used for programming, scripting, or markup languages, such as HTML. The feature displays text, especially source code, in different colours and fonts according to the category of terms. This feature facilitates writing in a structured language · image: Wikimedia Commons

Syntax highlighting is a feature of text editors that is used for programming, scripting, or markup languages, such as HTML. The feature displays text, especially source code, in different colours and fonts according to the category of terms. This feature facilitates writing in a structured language such as a programming language or a markup language as both structures and syntax errors are visually distinct. This feature is also employed in many programming related contexts (such as programming manuals), either in the form of colourful books or online websites to make understanding code snippets easier for readers.

Highlighting does not affect the meaning of the text itself; it is intended only for assisting human readers. Syntax highlighting is a form of secondary notation, since the highlights are not part of the text meaning, but serve to reinforce it. Some editors also integrate syntax highlighting with other features, such as spell checking or code folding, as aids to editing which are external to the language.

Wikipedia contributors, "Syntax highlighting", Wikipedia, revision 1385935063, retrieved 20 November 2026, source, CC BY-SA 4.0.

More Philosophy · Search the codex