diff --git a/src/ce_d2synpresets.pas b/src/ce_d2synpresets.pas index 1f4a5cdf..ee3405f2 100644 --- a/src/ce_d2synpresets.pas +++ b/src/ce_d2synpresets.pas @@ -7,7 +7,7 @@ uses Classes, SysUtils, SynEditMiscClasses, Graphics, Controls, StdCtrls, ExtCtrls, SynEditHighlighter, SynEditTypes, SynEdit, RTTIGrids, Buttons, ce_interfaces, ce_common, ce_writableComponent, ce_d2syn, ce_observer, - ce_editoroptions, ce_sharedres; + ce_editoroptions, ce_sharedres, ce_txtsyn; type @@ -185,6 +185,9 @@ begin EditorOptions.identifierMatch.Assign(identifierMatch); EditorOptions.mouseLink.Assign(mouseLink); EditorOptions.selection.Assign(selection); + TSynTxtSyn(EditorOptions.highlighterGeneric).whites.Assign(getHl.whites); + TSynTxtSyn(EditorOptions.highlighterGeneric).text.Assign(getHl.identifiers); + TSynTxtSyn(EditorOptions.highlighterGeneric).symbols.Assign(getHl.symbols); EditorOptions.applyChangesFromSelf; end; diff --git a/src/ce_synmemo.pas b/src/ce_synmemo.pas index 0fd99296..be347132 100644 --- a/src/ce_synmemo.pas +++ b/src/ce_synmemo.pas @@ -268,7 +268,7 @@ var D2Syn: TSynD2Syn; // used as model to set the options when no editor exists. TxtSyn: TSynTxtSyn; // used as model to set the options when no editor exists. LfmSyn: TSynLfmSyn; // used to highlight the native projects. - JsSyn: TSynJScriptSyn; // used to highlight the DUB JSON projects. + JsSyn: TSynJScriptSyn;// used to highlight the DUB JSON projects. implementation