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.
- TSynCompletion
- TSynAutoComplete
Beispiele für die Verwendung von SynEdit
Beispiele für die Verwendung von SynEdit finden sich im Ordner
- Linux: lazarus/examples/synedit
- Windows: lazarus\examples\synedit
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.\
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.
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.
| When | Who | What changed |
|---|---|---|
| Billyraybones | page added; started translation (minor) | |
| Chronos | ||
| Vincent | Text replace - "delphi>" to "syntaxhighlight>" (minor) | |
| Olaf | (minor) | |
| HeX | add link to ATSynEdit | |
| Trev | Fixed syntax highlighting; deleted category included in page template (minor) | |
| Wennerer | Siehe auch |
Talk about this page
Nobody has opened a bench for this page yet. Sign in to open one.
