|
|||||
Keywords | |||||
Keywords are words that have a special meaning to OmniMark. Keywords are never case-sensitive.
In general, it is considered bad practice to give a function or variable a name that is also an OmniMark keyword. This is because, if you define a variable or a function with a name that is the same as a keyword, that word can no longer be used as a keyword within the program and becomes just a name. To keep using a word as a keyword when it is also being used as the name of a variable or function, immediately precede the word with a back quote.
SGML and XML names differ from programmer-defined names in this regard. Because the names of SGML and XML objects are always heralded by a keyword such as element
or attribute
, there is no ambiguity when such an object has the same name as a keyword. Context will determine the meaning of the word.
---- |