Ini
Prototypes
class function Ini(aMode: TMDStyleMode = smLight): TMDSyntaxStyles; static;
Description
Returns an array of TMDSyntaxStyle for the default color settings for the highlighting of ini scripts.
Two sets are preset for light and dark modes. Use TMDStyle.Mode to select the required one, light by default.
Example
procedure TDataModule1.MDStyle1SyntaxHighlighting(Sender: TObject; const aLanguage: string; var aStyles: TMDSyntaxStyles);
begin
if MatchText(aLanguage, ['Pascal', 'Delphi']) then
aStyles := TMDSyntax.Pascal(MDStyle1.Mode)
else if SameText(aLanguage, 'JSon') then
aStyles := TMDSyntax.JSon(MDStyle1.Mode)
else if SameText(aLanguage, 'Ini') then
aStyles := TMDSyntax.Ini(MDStyle1.Mode);
end;
See also
TMDCustomControl.OnSyntaxHighlighting