[Lazarus] clarification / Re: constant-highlight ? [Re: quick opinion poll / pascal highlighting "case"]

Jürgen Hestermann juergen.hestermann at gmx.de
Wed May 26 18:06:53 CEST 2010


> But when having it formatted like this
> if x then   begin
>   code
>   end else   if y then      begin
>      code
>      end   else      begin
>      code
>      end;
> you can immediately see that the new-command has to be inserted like that:
> if x then   begin
>   code
>   end else   begin
>   new-command
>   if y then      begin
>      code
>      end   else      begin
>      code
>      end;
>   end;

Ooops. Something went wrong with the formatting here. What I meant was:
--------------------
But when having it formatted like this

if x then
   begin
   code
   end
else
   if y then
      begin
      code
      end
   else
      begin
      code
      end;

you can immediately see that the new-command has to be inserted like that:

if x then
   begin
   code
   end
else
   begin
   new-command
   if y then
      begin
      code
      end
   else
      begin
      code
      end;
   end;
--------------------




More information about the Lazarus mailing list