[Lazarus] how I can use the component TSynEditAutoComplete
Martin
lazarus at mfriebe.de
Sat Jan 7 01:16:11 CET 2012
On 06/01/2012 23:28, Reinier Napoles Martinez wrote:
> I want to do something like this:
> arrayd and when ,I pressed ctrl+j
>
> insert for example:
> array[0|..1] of Type;
>
> and when press tab, move the cursor to the next param
> array[0..1|] of Type; //Tab
> array[0..1] of Type|;
>
> like the Lazarus Code editor.
Look at TSynPluginTemplateEdit in ide\sourcesyneditor.pas
You do need to parse the "param()", that isn't done by SynEdit, but the IDE
- the search starts in ide\codetemplatesdlg.pas line 790
- and probably ide\codemacroprompt.pas ExecuteCodeTemplate()
It's a long time since I looked at that...
More information about the Lazarus
mailing list