[Lazarus] Prevent CodeTools from parsing a piece of code

Michael Van Canneyt michael at freepascal.org
Fri Nov 21 09:36:56 CET 2014



On Thu, 20 Nov 2014, Mattias Gaertner wrote:

> On Thu, 20 Nov 2014 17:16:40 +0100
> Sven Barth <pascaldragon at googlemail.com> wrote:
>
>> Hello together!
>>
>> Is there a possibility to prevent the CodeTools from parsing a piece of
>> code while allowing the compiler to parse it? For example some define
>> that's only set for CodeTools, but not for the compiler?
>> This would be really useful for people like me who either work on New
>> compiler features or use newer features in stable (aka older) versions of
>> the IDE. :)
>
> Tools / Codetools Defines Editor
> Edit / Insert Node Below / Define Recurse
>
> Name: InLazIDE
> Description: Define InLazIDE everywhere
> Variable: InLazIDE
> Value: 1
>
> Then you can use anywhere:
> {$IFDEF InLazIDE}
> only valid in Lazarus source editor
> {$ENDIF}

Seems like something useful which you could add by default :)

Michael.




More information about the Lazarus mailing list