[Lazarus] Can the Lazarus IDE match parentheses and begin/ends?

Martin Frb lazarus at mfriebe.de
Fri Jan 5 14:12:59 CET 2018


On 05/01/18 12:41, Bo Berglund via Lazarus wrote:
> I wonder if it is possible (and if so how) to enable the Lazarus code
> editor to match the open/close parenthesis and begin/end block
> delimiters?

brackets are already answered in the other mails.

begin/end is not on the wiki (yet), but it is in the Options dialog 
under > Editor > Display > Markup and Matches

It is called "Word Brackets on caret"

There is a listbox with: "Procedure","Begin/end", "repeat" .....
you can select each entry and check "Markup (on caret), to get the highlight

eg
*  "Procedure" will highlight 3 keyword: Procedure, begin, end,
* "Begin/end (procedure)" highlights only the begin and end of a 
procedure block

You can choose the kind of highlight (eg change back color, instead of 
frame) in the "Colors" page of the option dialog.





More information about the Lazarus mailing list