Sign in Join
Wiki copytemporary

IDE Window: Editor Options Markup: what changed

Revision 0 to 1. Removed lines have a minus sign; added lines have a plus sign.

Title: IDE Window: Editor Options Markup

OldNewLine
1+This is part of the online help for the IDE. \
2+It describes the section: "Editor" / "Markup and Matches". You can open the described dialog in your IDE via:\
3+*The menu: "Tools" =\> "Options" / Editor options ...
4+
5+- The source-editor pop-up menu: "Editor properties ...
6+
7+Navigation\
8+
9+- [[IDE Window: Editor Options|Editor Options]] Overview of all Editor Options
10+
11+     
12+
13+- [[IDE Window: IDE Options Dialog|IDE Options]] Overview of all options for the IDE
14+
15+------------------------------------------------------------------------
16+
17+# Markup and Matches
18+
19+### Current Word
20+
21+There are a couple of options to control the current-word-markup feature. They are on the "Automatic feature" page of the editor option (plus color settings on the color page)
22+
23+Note: If you have a block selected, the selected block will be used as term to highlight, rather than the word under caret. Some settings are only for block, others only for current-word
24+
25+1\) You can change the time after which highlighting kicks in. You can also disable the Timer completely, in which case you can still toggle Highlighting by Keyboard
26+
27+2\) Toggle by Keyboard (default Alt-M) You can toggle the highlight to any chosen word, or selection by pressing Alt-M while at the word, or while having selected the desired block. Pressing Alt-M again will set the "fixed" word to the word at your new location. To untoggle, press Alt-M twice at the same location (The exact behaviour is: If your current selected block, or (if no block selected) the current word under cursor is the same term as the word you toggled-fixed, this will clear the fixed word. Otherwise the fixed word will be set)
28+
29+3\) You can ignore Keywords. This is a hardcoded list of Keywords, and will ignore them even if they are used in a context where they would not be seen as Keyword. The list comes from the highlighter, so this only works together with the highlighter.
30+
31+4\) for current-word only: You can choose to only highlight exact matches(match word boundaries) instead of any occurrence including occurrences in other words. By Default this applies to words shorter than 3 chars.
32+
33+For example: Set option to true and field to 3.
34+
35+If the word at caret is the 3 letter word 'laz' then all 'laz' will be marked, but not 'lazarus' or 'blaz'.
36+
37+If the word at caret is the 4 letter word 'laza' then all words including 'laza' will be marked, such as 'lazarus'.
38+
39+5\) blocks only: by default leading/trailing spaces are ignored/stripped from the search term
40+
41+To disable the feature completely: Set all colors (FG,. BG and Frame) to default (check the tickbox); make sure no Styles (bold, italic) are selected.
42+
43+This will be recognized, and the Editor is clever enough and will not even trigger the search for other words.
44+
45+### Bracket Highlight
46+
47+If the cursor is behind or in front of a bracket, highlight matching bracket
48+
49+### Extended Pascal Keywords
50+
51+---
52+*From the Free Pascal wiki, page "IDE Window: Editor Options Markup", as it stood on 2021-01-30 after a change by FTurtle, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's [[Licensing]] page. If you have concerns about this material, [message the admin](/wiki-contact).*

Back to history