Hello,
In Delphi 11 pro with TMS scripter 7.32 (VCL / Win32)
I have a strange problem. When I do :
procedure TForm31.FormCreate(Sender: TObject);
var
oldstr:string;
begin
oldstr:=IDEMemo1.lines.text;
IDEEngine1.NewUnit(TScriptLanguage.slPascal); // <- SyntaxStyles will be lost !
IDEMemo1.lines.text:=oldstr;
// IDEMemo1.SyntaxStyles:= ScrPascalMemoStyler1; <- workaround
end;
My style = IDEMemo1.SyntaxStyles will be lost (or ignored) ?
Full sample in attachment.
TIDEMemo.SyntaxStylesLost.zip (4,4 Ko)