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 [[Reserved words|reserved words]]).  
+
A keyword is a word with a special meaning and function in a programming language (see also [[Reserved words|reserved words]]).  
  
[[Lazarus]] will usually display keywords in Pascal text files in '''bold''' black characters. Use [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 Free Pascal words like [[Read|read]] or [[Write|write]], are in fact function names, not keywords.
+
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.
 
 
[[Category:Glossary]]
 

Revision as of 10:03, 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 (see also 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.