Difference between revisions of "Keyword"
From Lazarus wiki
Jump to navigationJump to search(12 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
− | A keyword is | + | {{Keyword}} |
+ | |||
+ | A keyword is an [[Identifier|identifier]] with a special meaning and function in a programming language. | ||
+ | Keywords include [[Reserved word|reserved words]] (such as [[Begin|<syntaxhighlight lang="pascal" inline>begin</syntaxhighlight>]] or | ||
+ | [[While|<syntaxhighlight lang="pascal" inline>while</syntaxhighlight>]]) and [[modifier]]s (such as [[Reintroduce|<syntaxhighlight lang="pascal" inline>reintroduce</syntaxhighlight>]] or [[Absolute|<syntaxhighlight lang="pascal" inline>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. | ||
+ | |||
+ | Some very common Free Pascal words like [[Read|<syntaxhighlight lang="pascal" inline>read</syntaxhighlight>]] or [[Write|<syntaxhighlight lang="pascal" inline>write</syntaxhighlight>]], are in fact [[Procedure|<syntaxhighlight lang="pascal" inline>procedure</syntaxhighlight>]] names, not keywords. |
Latest revision as of 17:10, 6 August 2022
│
Deutsch (de) │
English (en) │
Esperanto (eo) │
suomi (fi) │
français (fr) │
русский (ru) │
A keyword is an identifier 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.