[Lazarus] Some ideas that he editor in Lazarus can have

John Stoneham captnjameskirk at gmail.com
Fri Feb 4 20:41:23 CET 2011


2011/2/4 Martin <lazarus at mfriebe.de>

>  On 04/02/2011 19:17, John Stoneham wrote:
>
> 2011/2/3 Martin <lazarus at mfriebe.de>
>
>>  Anyway try to compile with -dWithSynOverviewGutter
>> It gives an overview of some elements:
>> - implementation vs interface
>> - the yellow/green changed line indications
>> - position of bookmarks
>> - position of breakpoints
>>
>> => It is meant to one day indicate the locations of errors and
>> warnings.....
>>
>>
>  I compiled with and without this option and didn't notice a difference.
> When a line is changed I get a yellow mark, and it changes to green when
> saved -- but this happens with and without the compile option. Bookmarks and
> breakpoints show the same. However, I don't notice anything in the gutter
> for implementation vs interface at all. I compiled with "make clean all
> OPT="-dWithSynOverviewGutter""
>
>  Am I missing something?
>
> With the option, SynEdit presents an overview column, next to the vertical
> scrollbar (or on the right side of the edit).
> This column represents the entire file, not just the current screen.
>
>


Well, it turns out this may be a bug in the OS X implementation. It seems
that it only displays if the editor is resized, which I just happened to do
by accident. BUT, it must be resized for each file (resizing it once doesn't
fix it for any other open files) -- and this must be done every time lazarus
is run (it doesn't show upon restart, you've still got to resize the editor
to display the gutter again). It does show if the file is very short and
there is no vertical scroll bar, but not for any file that's long enough to
need the v-scrollbar.




>
>
>  BTW, I cannot find this option mentioned anywhere. Are there others that
> perhaps aren't documented, that might be useful?
>
>
> No it is not documented. That is, because the feature is still developed.
> The API for it (for people using Synedit in their own code) may still
> change).
>
> The other options (for SynEdit) that I am aware of, are all either for
> debugging (enable various console output), or enable asserts in the code:
> SynDebug
> SynCaretDebug
> SynTrimDebug
> SynFoldDebug
> SynFoldSaveDebug
> SynCheckPaintLock
> SynClipboardExceptions
> AssertSynMemIndex
>
> None of them are guaranteed to stay as they are.
>
> You may find other IFDEF in the SynEdit code, some of them are left overs
> from a time long gone. Using those old ones will likely not even compile....
>

Very cool, thanks!

-- 
John
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20110204/b4801ba5/attachment-0003.html>


More information about the Lazarus mailing list