Sign in Join
Wiki copytemporary

SynEdit/de

Deutsch · English · Español · Français · Polski · Русский · 中文(中国) · 日本語

Allgemein

Lazarus enthält einen Editor namens TSynEdit. Dieser vielseitige Editor kann in den eigenen Projekten verwendet werden. SynEdit bietet für für die Bearbeitung von Quellcode in unterschiedlichen Programmiersprachen unterschiedliche Syntaxhervorhebungen an.

SynEdit findet man in der Programmierumgebung Lazarus und dort in der Komponentenleiste als Register SynEdit.

Highlighting

Benötigen Sie in einer speziellen Programmiersprache eine Syntaxhervorhebung (Highlighting), dann können Sie Ihren eigenen SynEdit Highlighter schreiben.

(Auto-)Ergänzung

Es gibt in Synedit zwei Plugins für die Auto-Ergänzung.

Beispiele für die Verwendung von SynEdit

Beispiele für die Verwendung von SynEdit finden sich im Ordner

Wie Sie Unterstützung für Copy, Paste, Cut, Undo, Redo, etc hinzufügen

Diese Eigenschaften können soweit noch nicht vorhanden unter der Verwendung der SynEditKeyCmds implementiert werden.\

pascal
uses
  ...

  SynEdit, SynEditKeyCmds;

  ...

procedure TfrmPrincipal.HandleCodigoKeyDown(Sender: TObject; var Key: Word;
  Shift: TShiftState);
begin
  if (Shift = [ssCtrl]) then
  begin
    case Key of
    VK_C: synCodigo.CommandProcessor(TSynEditorCommand(ecCopy), ' ', nil);
    VK_V: synCodigo.CommandProcessor(TSynEditorCommand(ecPaste), ' ', nil);
    VK_X: synCodigo.CommandProcessor(TSynEditorCommand(ecCut), ' ', nil);
    end;
  end;
end;

  ...

Siehe auch


From the Free Pascal wiki, page "SynEdit/de", as it stood on 2024-03-27 after a change by Wennerer, out of the wiki's dump of 2024-05-26. Copyright stays with the author who wrote it, according to the old wiki's Licensing page. If you have concerns about this material, message the admin.

Revision 1, last changed by WikiArchive .

Edited on wiki.freepascal.org by 7 people, 2011–2024

From the official wiki's backup of 26 May 2024: who edited this page there, and when. Edits made there after that date were not recorded, and the earlier versions are not shown here; the main page says why.

WhenWhoWhat changed
Billyraybonespage added; started translation (minor)
Chronos
VincentText replace - "delphi>" to "syntaxhighlight>" (minor)
Olaf (minor)
HeXadd link to ATSynEdit
TrevFixed syntax highlighting; deleted category included in page template (minor)
WennererSiehe auch

Talk about this page

Nobody has opened a bench for this page yet. Sign in to open one.