Difference between revisions of "Keyword"

From Lazarus wiki
Jump to navigationJump to search
Line 1: Line 1:
 
{{keyword}}
 
{{keyword}}
  
A keyword is a word with a special meaning and function in a programming language (see also [[Reserved words|reserved words]]).  
+
A keyword is a word with a special meaning and function in a programming language.
 +
Keywords include [[Reserved word|reserved words]] (such as [[Begin|<syntaxhighlight lang="pascal" enclose="none">begin</syntaxhighlight>]] or
 +
[[While|<syntaxhighlight lang="pascal" enclose="none">while</syntaxhighlight>]]) and [[modifier]]s (such as [[Reintroduce|<syntaxhighlight lang="pascal" enclose="none">reintroduce</syntaxhighlight>]] or [[Absolute|<syntaxhighlight lang="pascal" enclose="none">absolute</syntaxhighlight>]]) (see also [[FPC|Free Pascal]] [[Reserved words|reserved words]]).  
  
 
[[Lazarus]] will usually display keywords in [[Pascal]] text files ([[Source code|source code]]) in '''bold''' black characters using [[Syntax highlighting|syntax highlighting]]. Use [[IDE Window: Editor Options HighlightColors|[IDE options|Editor|Colors]]] to change.
 
[[Lazarus]] will usually display keywords in [[Pascal]] text files ([[Source code|source code]]) in '''bold''' black characters using [[Syntax highlighting|syntax highlighting]]. Use [[IDE Window: Editor Options HighlightColors|[IDE options|Editor|Colors]]] to change.
  
Some very common [[FPC|Free Pascal]] words like [[Read|<syntaxhighlight lang="pascal" enclose="none">read</syntaxhighlight>]] or [[Write|<syntaxhighlight lang="pascal" enclose="none">write</syntaxhighlight>]], are in fact [[Procedure|<syntaxhighlight lang="pascal" enclose="none">procedure</syntaxhighlight>]] names, not keywords.
+
Some very common Free Pascal words like [[Read|<syntaxhighlight lang="pascal" enclose="none">read</syntaxhighlight>]] or [[Write|<syntaxhighlight lang="pascal" enclose="none">write</syntaxhighlight>]], are in fact [[Procedure|<syntaxhighlight lang="pascal" enclose="none">procedure</syntaxhighlight>]] names, not keywords.

Revision as of 11:15, 30 June 2019

Deutsch (de) English (en) Esperanto (eo) suomi (fi) français (fr) русский (ru)

A keyword is a word with a special meaning and function in a programming language. Keywords include reserved words (such as begin or while) and modifiers (such as reintroduce or absolute) (see also Free Pascal reserved words).

Lazarus will usually display keywords in Pascal text files (source code) in bold black characters using syntax highlighting. Use [IDE options|Editor|Colors] to change.

Some very common Free Pascal words like read or write, are in fact procedure names, not keywords.