Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2008-10

[PATCH] SynEdit: Mouse Link identifiers only (was: Re: SynEdit: TSynPasSyn and keywords)

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Alexander Klenin
Alexander Klenin wrote 10 lines
> I'm not yet sure, what you want to achieve. Do you need a general > solution for your application, which uses synedit, or a special > solution for the IDE? A special one of the IDE. I just usually try not to write too specific solutions -- e.g. I consider bad style "magic" comparison like if TokenKind == 4 then token_is_linkable So my last question was -- how to achieve that in a good style?

Ok, attached is updated patch using GetHighlighterAttriAtRowColEx function and magic constant. Is it acceptable?

Alexander S. Klenin Insight Experts Ltd. -------------- next part -------------- A non-text attachment was scrubbed... Name: synedit_mouselink_indents_only.patch Type: application/octet-stream Size: 2113 bytes Desc: not available Url : http://www.lazarus.freepascal.org/pipermail/lazarus/attachments/20081017/a549961e/attachment.obj

Reply by email