Hi,
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)
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
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
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)
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.
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.
5) blocks only:
by default leading/trailing spaces are ignored/stripped from the search term
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.
This will be regognied, and the Editor is clever enough and will not even trigger the search for other words.
Best Regards
Martin
Graeme Geldenhuys wrote 28 lines
Hi,
I'm catching up on new Lazarus IDE features since mid December - you
guys have been busy I see! ;-)
I noticed that if I place the cursor on begin..end pair or on a
property like "Width", similar properties are highlighted all over the
code. What is this used for? The screenshot shows what I mean.
Regards,
- Graeme -
_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
------------------------------------------------------------------------
------------------------------------------------------------------------
_______________________________________________
Lazarus mailing list
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus