IDE: Export Html, option to use background color. Part of issue #40088

This commit is contained in:
Martin 2023-06-13 11:50:21 +02:00
parent b0e5787dce
commit 06bb1297c7

View File

@ -4895,10 +4895,10 @@ begin
Html.ExportAsText := True;
Html.Highlighter := FEditor.Highlighter;
Html.Title := PageName;
Html.Font.Assign(FEditor.Font);
Html.UseBackground := EditorOpts.ExportHtmlWithBackground;
if EditorOpts.ExportHtmlWithBackground then begin
Html.Color := FEditor.Color;
Html.Font.Assign(FEditor.Font);
end;
Html.ExportAll(FEditor.Lines);
Html.SaveToFile(AFileName);