Prototypes

class function Delphi(aMode: TMDStyleMode = smLight): TMDSyntaxStyles; static;

Description

Returns an array of TMDSyntaxStyle for the default color settings for the highlighting of Delphi scripts. It returns the same settings as Pascal.

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

TMDStyle.OnSyntaxHighlighting

TMDStyle.SelectMode

Markdown syntax: Code blocks