[Lazarus] TMask and Case Sensitive matching

Bart bartjunk64 at gmail.com
Wed Apr 28 13:32:44 CEST 2010


On Tue, 27 Apr 2010 14:36:38 -0400
Lee Jenkins <lee at datatrakpos.com> 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




More information about the Lazarus mailing list