Lazarus

Using the Lazarus IDE => Editor => Topic started by: hakelm on November 03, 2021, 12:46:30 pm

Title: mysterious marks on the sides of the editor
Post by: hakelm on November 03, 2021, 12:46:30 pm
My Lazarus editor shows some minuscule marks on the side of the editor window I haven't noticed before, see the attachments.
What are these for.
Title: Re: mysterious marks on the sides of the editor
Post by: MarkMLl on November 03, 2021, 01:34:01 pm
WHAT VERSION  of the IDE, and what version are you used to? On what platforms?

Which marks are you complaining about: the indication of changed lines etc. or the inexplicable icon fragments?

MarkMLl
Title: Re: mysterious marks on the sides of the editor
Post by: Zvoni on November 03, 2021, 03:14:46 pm
at a guess he means the blue rectangles and green squares on the scrollbar
Title: Re: mysterious marks on the sides of the editor
Post by: MarkMLl on November 03, 2021, 03:23:55 pm
at a guess he means the blue rectangles and green squares on the scrollbar

/Next/ to the scrollbar.

But in decades of offering occasional technical support I've learnt (oh and /how/ I've learnt) to never make assumptions :-)

MarkMLl
Title: Re: mysterious marks on the sides of the editor
Post by: Handoko on November 03, 2021, 04:07:00 pm
... blue rectangles and green squares on the scrollbar

I saw them often. To make them appear: open an old project, modify some lines, run it then you can see the those rectangles and squares. The green squares mean that lines have been modified but I don't know what the rectangles mean.
Title: Re: mysterious marks on the sides of the editor
Post by: Martin_fr on November 03, 2021, 04:22:58 pm
It's the  "overview gutter" => can be enabled/disabled in TOols> Options.

It shows
- modified lines: green/yellow
- gutter marks: breakpoints (red), bookmarks(blue), compile error (orange)
- interface, implementation,finalization sections: shades of grey
- current visible page: shade of grey
Title: Re: mysterious marks on the sides of the editor
Post by: Ally on November 03, 2021, 04:32:43 pm
And what is particularly useful: If you click on the marking, you are immediately at the relevant point in the text.
Title: Re: mysterious marks on the sides of the editor
Post by: howardpc on November 03, 2021, 04:35:41 pm
The editor has been designed with two gutters.
The left gutter summarises or depicts information about each individual line of text.
The right gutter gives a highly compressed overview of all lines in the file.
For Pascal files the background greys alternate to show the relative sizes and locations of major unit sections (interface, implementation, initialization, finalization).

In addition the "coloured rectangles" indicate the relative positions of specific left-gutter indications such as a breakpoint or bookmark or compilation error. The rectangles are coloured to correspond to the left-gutter markings (red for breakpoint, for example).
Title: Re: mysterious marks on the sides of the editor
Post by: af0815 on November 03, 2021, 05:26:13 pm
Is the information in the wiki too ?! With the keyword 'overview gutter' i found nothing
Title: Re: mysterious marks on the sides of the editor
Post by: MarkMLl on November 03, 2021, 05:47:33 pm
Is the information in the wiki too ?! With the keyword 'overview gutter' i found nothing

Don't think so, I went looking for relevant screenshots etc. earlier.

I know Martin's discussed it hearabouts before now, mainly in the context of the sliding grey bit not being draggable (and I didn't realise that the other marks were actually clickable).

Basically, the righthand (overview) gutter is a greeked view of what's to the left of it. Generally speaking it works well.

MarkMLl
Title: Re: mysterious marks on the sides of the editor
Post by: AlexTP on November 03, 2021, 05:57:05 pm
I just created the wiki page
https://wiki.freepascal.org/IDE_Overview_Gutter
Title: Re: mysterious marks on the sides of the editor
Post by: Handoko on November 03, 2021, 06:03:41 pm
Thank you.
TinyPortal © 2005-2018