Difference between revisions of "SynEdit/es"
Line 1: | Line 1: | ||
{{SynEdit}} | {{SynEdit}} | ||
− | SynEdit es un paquete que contiene un componente editor de código fuente llamado TSynEdit, varios resaltadores de sintaxis y otros componentes utilizados para la edición de código fuente. Está basado en SynEdit 1.3 a partir del cual fué adaptado y extendido con | + | SynEdit es un paquete que contiene un componente editor de código fuente llamado TSynEdit, varios resaltadores de sintaxis y otros componentes utilizados para la edición de código fuente. Está basado en SynEdit 1.3 a partir del cual fué adaptado y extendido con características tales como soporte UTF-8 y plegado de código (code folding). |
== SynEdit en el IDE == | == SynEdit en el IDE == | ||
+ | El componente SynEdit es un paquete que ya viene integrado con Lazarus debido a que lo utiliza el propio IDE. Es por ello que no existe un fichero .lpk. | ||
+ | Estos componentes se pueden encontrar dentro de la paleta de componentes en la solapa 'SynEdit'. | ||
− | + | == Ejemplos == | |
− | |||
− | + | Se puede encontrar un ejemplo en lazarus/examples/synedit1.lpi. | |
− | + | === Como añadir soporte para Copy, Paste, Cut, Undo, Redo, etc === | |
− | + | Estas características se pueden implementar utilizando mandatos SynEdit. | |
− | |||
− | |||
<delphi> | <delphi> | ||
Line 37: | Line 36: | ||
− | == Further development, | + | == Further development, discusiones == |
− | * RTL ( | + | * RTL (de derecha a izquierda (Right-To-Left): comenzado por Mazen |
− | * automatic monospace font selection: At the moment SynEdit starts with a font 'courier'. But it would be better, if SynEdit would start with a monospace font (meaning: every character has the same width). | + | * automatic monospace font selection: At the moment SynEdit starts with a font 'courier'. But it would be better, if SynEdit would start with a monospace font (meaning: every character has the same width). Por el momento el LCL TFont no aporta tal propiedad. Por el momento el usuario tiene que escoger la fuente correcta. |
− | * automatic UTF-8 font selection: Same as above monospace, but also with an UTF-8 font, so that for example umlaute are shown correctly. | + | * automatic UTF-8 font selection: Same as above monospace, but also with an UTF-8 font, so that for example umlaute are shown correctly. Por el momento el usuario tiene que escoger la fuente correcta. |
* Dead keys. Most keyboards support typing two or more keys to create one special character (like accented or umlaut characters). | * Dead keys. Most keyboards support typing two or more keys to create one special character (like accented or umlaut characters). | ||
− | * [[Redesign of the SynEdit component]]. The primary goal is more reliable display and navigation in the text. A more modular approach also allows for better integration of extensions, | + | * [[Redesign of the SynEdit component]]. The primary goal is more reliable display and navigation in the text. A more modular approach also allows for better integration of extensions, y por controles especializados, para su utilización fuera de Lazarus. |
Revision as of 00:35, 4 September 2009
│
Deutsch (de) │
English (en) │
español (es) │
français (fr) │
日本語 (ja) │
polski (pl) │
русский (ru) │
中文(中国大陆) (zh_CN) │
SynEdit es un paquete que contiene un componente editor de código fuente llamado TSynEdit, varios resaltadores de sintaxis y otros componentes utilizados para la edición de código fuente. Está basado en SynEdit 1.3 a partir del cual fué adaptado y extendido con características tales como soporte UTF-8 y plegado de código (code folding).
SynEdit en el IDE
El componente SynEdit es un paquete que ya viene integrado con Lazarus debido a que lo utiliza el propio IDE. Es por ello que no existe un fichero .lpk. Estos componentes se pueden encontrar dentro de la paleta de componentes en la solapa 'SynEdit'.
Ejemplos
Se puede encontrar un ejemplo en lazarus/examples/synedit1.lpi.
Como añadir soporte para Copy, Paste, Cut, Undo, Redo, etc
Estas características se pueden implementar utilizando mandatos SynEdit.
<delphi> 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; </delphi>
Further development, discusiones
- RTL (de derecha a izquierda (Right-To-Left): comenzado por Mazen
- automatic monospace font selection: At the moment SynEdit starts with a font 'courier'. But it would be better, if SynEdit would start with a monospace font (meaning: every character has the same width). Por el momento el LCL TFont no aporta tal propiedad. Por el momento el usuario tiene que escoger la fuente correcta.
- automatic UTF-8 font selection: Same as above monospace, but also with an UTF-8 font, so that for example umlaute are shown correctly. Por el momento el usuario tiene que escoger la fuente correcta.
- Dead keys. Most keyboards support typing two or more keys to create one special character (like accented or umlaut characters).
- Redesign of the SynEdit component. The primary goal is more reliable display and navigation in the text. A more modular approach also allows for better integration of extensions, y por controles especializados, para su utilización fuera de Lazarus.