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...
--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus