IDE Window: Editor User Defined Words

From Lazarus wiki
Revision as of 13:56, 31 January 2013 by Martin (talk | contribs)
Jump to navigationJump to search

Template:IDE Window: Editor Options User Defined Words
This is part of the online help for the IDE.
It describes the section: "Editor" / "User Defined Words". You can open the described dialog in your IDE via:

  • The menu: "Tools" => "Options" / Editor options ...
  • The source-editor pop-up menu: "Editor properties ...

Navigation

     

General

Allows to specify several lists of "terms" that will be highlighted in all editors. The list work highlighter independent. The terms apply to any text in any editor.

Terms can be added or removed from the lists using key-shortcuts from the editor. Those terms can either apply to all editors or just the current. A lists may be empty at start, and only be used with terms added via shortcut.

Predefined terms (specified in this option dialog) can be temporarily disabled using the same shortcuts.

Current Limitations
Terms added via shortcuts are currently not saved when the IDE is closed. They are also not cleared if the project is changed.

Terminology

Term
A word, part of a word, sentence (several words) or any sequence of chars. Must be a single line.
Bounds
The begin or end of a word. A bound can either be a space before/after the matched term, the begin or end of the line, or a "none word" char (e.g. punctuation, quotes or "=")

Note: The matching of bounds, currently does not care for spaces (or other none-word chars in the search term. " Abc." will require another none-word char on each end in order to match bounds.

Select, Add, Delete List

IDE Options User Defined 1.png

Main Settings

IDE Options User Defined 2.png

Name

Key Settings

IDE Options User Defined 3.png

Colors