mirror of https://gitlab.com/basile.b/dexed.git
apply highlighter preset to the generic highlighter too
This commit is contained in:
parent
17a49c92a9
commit
e58f7f9974
|
@ -7,7 +7,7 @@ uses
|
||||||
Classes, SysUtils, SynEditMiscClasses, Graphics, Controls, StdCtrls, ExtCtrls,
|
Classes, SysUtils, SynEditMiscClasses, Graphics, Controls, StdCtrls, ExtCtrls,
|
||||||
SynEditHighlighter, SynEditTypes, SynEdit, RTTIGrids, Buttons,
|
SynEditHighlighter, SynEditTypes, SynEdit, RTTIGrids, Buttons,
|
||||||
ce_interfaces, ce_common, ce_writableComponent, ce_d2syn, ce_observer,
|
ce_interfaces, ce_common, ce_writableComponent, ce_d2syn, ce_observer,
|
||||||
ce_editoroptions, ce_sharedres;
|
ce_editoroptions, ce_sharedres, ce_txtsyn;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
||||||
|
@ -185,6 +185,9 @@ begin
|
||||||
EditorOptions.identifierMatch.Assign(identifierMatch);
|
EditorOptions.identifierMatch.Assign(identifierMatch);
|
||||||
EditorOptions.mouseLink.Assign(mouseLink);
|
EditorOptions.mouseLink.Assign(mouseLink);
|
||||||
EditorOptions.selection.Assign(selection);
|
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;
|
EditorOptions.applyChangesFromSelf;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
|
@ -268,7 +268,7 @@ var
|
||||||
D2Syn: TSynD2Syn; // used as model to set the options when no editor exists.
|
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.
|
TxtSyn: TSynTxtSyn; // used as model to set the options when no editor exists.
|
||||||
LfmSyn: TSynLfmSyn; // used to highlight the native projects.
|
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
|
implementation
|
||||||
|
|
Loading…
Reference in New Issue