Re: [MSEide-MSEgui-talk] Syntax highlighter for begin..end ?

2016-01-06 Thread Martin Schreiber
On Tuesday 05 January 2016 06:30:52 Martin Schreiber wrote: > On Monday 04 January 2016 23:47:54 Fred van Stappen wrote: > > > But, maybe, if you have time, you could check the code in: > > > > https://github.com/fredvs/ideU/blob/master/src/msesyntaxedit.pas > > > > Huh, this is absolutely first

Re: [MSEide-MSEgui-talk] Need some input

2016-01-06 Thread Martin Schreiber
On Tuesday 05 January 2016 10:31:32 Michael Ebner wrote: > Am 04.01.2016, 15:35 Uhr, schrieb Martin Schreiber : > >> 1.) HelpContext: Ok, I can set a value, but what can I do with this > >> value. > >> Clicking a THelpController on the form an using OnHelp doesn't do > >>

Re: [MSEide-MSEgui-talk] Syntax highlighter for begin..end ?

2016-01-06 Thread Fred van Stappen
> Done, git master 5dce64c0f69faad41afebe928b72243abfd96f1b. > > Warning: It does not parse the code so it does not skip comments for example. => While x < 9 do begin WOW := WOW + WOW; inc(x); end; Magnifique (and it hightlights the hole word => always better than me ;-) ). May I add

Re: [MSEide-MSEgui-talk] Syntax highlighter for begin..end ?

2016-01-06 Thread Fred van Stappen
> Works for me. Are you sure you used current lib/kernel/linux/mseguiintf.pas? > There was a bug before 2.8 with this effect on FreeBSD. I use last msegui, intact from 2 days ago. I will try with release of today. Write you later... Fre;D

Re: [MSEide-MSEgui-talk] Syntax highlighter for begin..end ?

2016-01-06 Thread Fred van Stappen
> May I add all the "word"-"end" family ("try"-"end", "case"-""end", > "class"-"end", etc...)? > (Or do you prefer do it yourself ?) Ho ! => pascal.sdef => pairwords 'BEGIN' 'END' 'REPEAT' 'UNTIL' ... You are the King of Pascal. OK, now MSEide-source-editor compete with

Re: [MSEide-MSEgui-talk] Syntax highlighter for begin..end ?

2016-01-06 Thread Martin Schreiber
On Wednesday 06 January 2016 16:03:22 Fred van Stappen wrote: > > Maybe it is possible to combine several start tokens with a single end > > token. > > Sure it works, I have try it with my code. > > It will works with yours too. > It seems not, please see attachment. ;-) Martin

Re: [MSEide-MSEgui-talk] Syntax highlighter for begin..end ?

2016-01-06 Thread Fred van Stappen
> Sure it works, I have try it with my code. > > It will works with yours too. > > It seems not, please see attachment. ;-) Hum, if I may, there is something not ok in your code... If you select a "end" it show the right "begin" but if you select "begin", sometimes it is not the right "end";

Re: [MSEide-MSEgui-talk] Syntax highlighter for begin..end ?

2016-01-06 Thread Fred van Stappen
> Maybe it is possible to combine several start tokens with a single end token. Sure it works, I have try it with my code. It will works with yours too. Fre;D --

Re: [MSEide-MSEgui-talk] Syntax highlighter for begin..end ?

2016-01-06 Thread Martin Schreiber
On Wednesday 06 January 2016 14:23:09 Fred van Stappen wrote: > > PS: With last release of MSEgui, on FreeBSD64, with fpc 3.0.0, the title of > windows does not appear on my system. Same for tray-buttons. > Works for me. Are you sure you used current lib/kernel/linux/mseguiintf.pas? There was a

Re: [MSEide-MSEgui-talk] Syntax highlighter for begin..end ?

2016-01-06 Thread Martin Schreiber
On Wednesday 06 January 2016 15:29:57 Fred van Stappen wrote: > > Done, git master 5dce64c0f69faad41afebe928b72243abfd96f1b. > > > > Warning: It does not parse the code so it does not skip comments for > > example. > > => > > While x < 9 do > begin > WOW := WOW + WOW; > inc(x); > end; > >

Re: [MSEide-MSEgui-talk] Syntax highlighter for begin..end ?

2016-01-06 Thread Fred van Stappen
> So, only 3 possibilities for the same "end" close-bracket. ;-( > The trick would be to have multi-close bracket. Hello Martin. I think I get it, even for multiple same closebrackets. => https://sites.google.com/site/fredvsbinaries/ideu_begin_case_end.mp4 openbrackets: array[bracketkindty] of

Re: [MSEide-MSEgui-talk] Syntax highlighter for begin..end ?

2016-01-06 Thread Fred van Stappen
> And, if I may once again, in my code it works both side and with "try", > "case" too ;-) Pretentious. ;-( It works, ok, but because it uses different closebrackets => openbrackets: array[bracketkindty] of msechar = (#0,'(','[','{','b','c','t'); closebrackets: array[bracketkindty] of