SynEdit - Multi syntax highlighter lazarus / 13-General ---------------------------------------------------------------------- Bjarte · 2006-04-28 02:16 Hiya, im having problems using the multi syntax highlighter in Lazarus, i cannot create new items in the Schemes editor, it shows just a blank page in the objects inspector. If i try to create runtime, i get a error with owner when setting the highlighter to what it should be. I then change the code and it seems to work "fine" but then when program quits i get a error in "lazarus\fpcsrc\rtl\objpas\classes\collect.inc" line 133 : function "TCollection.GetCount". My code is: Code: [Select]procedure TMainForm.FormCreate(Sender: TObject); begin   SynMultiSyn1.DefaultHighlighter := SynHTMLSyn1;   // php   with TgmScheme(SynMultiSyn1.Schemes.Add) do   begin        Collection := TCollection(SynMultiSyn1.Schemes);        StartExpr := '<\?';        EndExpr := '\?>';        Highlighter := SynPHPSyn1;   end;   SynEdit1.Highlighter := SynMultiSyn1; end; If i run it outside compiler i get error: QuoteRuntime error 217 at (ADDR) ... fpc_reraise, line 266 of c:/lazarus/source/fpc/2.1/rtl/inc/expect.inc ... TOBJECT__FREE, line 116 of c:/lazarus/source/fpc/2.1/rtl/inc/objpas.inc ... BEFOREINALIZATION, line 1326 Forms.pp ... INTERNALEXIT, line 660 of c:/lazarus/source/fpc/2.1/rtl/inc/system.inc ... DO_EXIT, line 683 of c:/lazarus/source/fpc/2.1/rtl/inc/system.inc ... EXE_ENTRY, line 422 of system.pp ---------------------------------------------------------------------- Anonymous · 2006-04-28 09:28 Hi! I have also problems with SynMultiSyn... it couses Lazarus to crash... (among other strange things, like closing wrong source page when I right click on a page and chose "Close Page" after I got a accsess ((Lazarus Source Editor))) ---------------------------------------------------------------------- Anonymous · 2006-04-28 09:44 Hoo! I managed to fix it, then I tryed to delete the SynMultiSyn component it was removed from the .pas file but not the .lfm, so I removed it from the .lfm file and now it's working ---------------------------------------------------------------------- Bjarte · 2006-04-28 09:49 Have you tried to use the SynMultiSyn? I would like to get it to work, it does'nt work in my Lazarus like it did in delph :|