I am opening a new mail thread, otherwise it will be mixed with the 
TAChart topic in the archives.

Alexander Klenin wrote:
> On Thu, Dec 11, 2008 at 23:49, Martin Friebe <[EMAIL PROTECTED]> wrote:
>   
>> Alexander Klenin wrote:
>>     
>>>>> and yet another one for patches to SynEdit (both stalled for about a 
>>>>> month now),
>>>>> etc
>>>>>           
>> I just saw this, and consequently found your patches on this mailing
>> list too.
>>
>> As for the SynEdit patches (is-link-able), If you can submit them to
>> mantis, I will take them and look at them.
>>     
>
> Ok, see http://bugs.freepascal.org/view.php?id=12785
> Note that I posted two patches, and apparently you only found the older one 
> ;-)
>
> My initial approach was not optimal, as you noted, but neither is the
> second one,
> and my questions about the best route were not answered.
> So if you have time and expertise, please read the mail threads
> mentioned in the bug report
> and provide me with insight ;-)
>   

I'll look further into it. A few things:
- GetHighlighterAttriAtRowColEx  may not be the best idea. It can be 
quite useful to be able to click on words in comments to. (Which works 
at current). GetHighlighterAttriAtRowColEx could be used to identify 
numbers.
- The highlighter is overall not the best solution to find linkable 
text. Because even a valid bit of code, may be unresolvable to codetools.

If using the Highlighter, I would propose to check for text/words that 
can definitely be excluded. (Numbers, certain keywords).


Another way would be to ask codetools them self.
Similar like SynEdit calls SourceEditor, which calls SourceNoteBook and 
then MainIDE.OnSrcNoteBookClickLink line 2952 in ide/main.pp
( see also line 1778:   SourceNotebook.OnClickLink := 
@OnSrcNoteBookClickLink; )

Best Regards
Martin





 
_______________________________________________
Lazarus mailing list
[email protected]
http://www.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to