On Tue, 27 Apr 2010 14:36:38 -0400 Lee Jenkins <[email protected]> wrote:
> Current there is the "|" to indicate within a code template where the cursor > should be left after execution. > > Are there any other token that can be used? Specifically, I'm looking for > something that will denote a tab/indent so that indentation can be performed > inside the code template based on the Lazarus user's settings for > tab-to-spaces, > etc. > > for $Param(CounterVar) := $Param(0) to $Param(Count) - 1 do > begin > | > end; > > In essence, a way to position tokens like Begin...End with an indent > according > to user's IDE preferences. Not yet. You could write a macro to use the jcf or prettyformat. > P.S. I'm converting many of the code templates shipped with Lazarus to work > with > sync editing where appropriate such as the above example. Should I submit > these > when I am finished? Of course. :) Mattias -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
