Kein-Hong Man: > editor.Lexer = SCLEX_PERL; > ... > My question is, shouldn't the green operator style appear > immediately, the first time test() is called? I have taken a > cursory look at the various calls involved, like RefreshStyleData, > InvalidateStyleRedraw and InvalidateStyleData, but so far I > haven't found out why this happens. Any ideas?
This behaviour is caused by refreshing settings from properties after running the macro. A IDM_FINISHEDEXECUTE is sent after runing the macro which checks the needReadProperties flag. This has been reset by the call to set the WindowID in CheckEnvironment called from the extension code upon opening the file. Its likely this could be fixed by checking to see if the WindowID is the same before setting it and thus changing needReadProperties. Neil _______________________________________________ Scite-interest mailing list [email protected] http://mailman.lyra.org/mailman/listinfo/scite-interest
