[Lazarus] Code Completion Templates
Donald Ziesig
donald at ziesig.org
Mon Feb 11 21:50:47 CET 2013
On 02/11/2013 03:46 AM, Mattias Gaertner wrote:
> On Sun, 10 Feb 2013 20:45:49 -0500
> Donald Ziesig <donald at ziesig.org> wrote:
>
>> [...]
>> I have almost finished a patch that uses an xml file, a new unit and
>> mods to codecompletion.pas to implement configurable code completion.
>>
>> I have a few questions remaining:
>>
>> 1) What is the preferred way to specify the name and location of the xml
>> file? I spent several hours trying to access PrimaryConfigPath or
>> SecondaryConfigPath from my unit which is in the codetools package.
>> Right now I am testing with a hard-coded path/file name.
> You can add those options to the existing options.
> See ide/codetoolsoptions.pas
>
>> 2) What is the preferred way to submit the patch? (In my previous life,
>> before retirement, all I had to do was submit my code to the Quality
>> Control unit and wait for their inevitable nasty-grams; the classic of
>> which was "What is this thing called a 'state machine' you have in your
>> code?" ;-) ).
> Attach it to
> http://bugs.freepascal.org/view.php?id=15922
>
>
>> 3) I have a separate program to parse the xml file and detect any
>> possible syntax errors before Lazarus tries to load it. Where should I
>> put that?
> What kind of syntax errors? For the xml or for the pascal snippets?
For the xml. I'm leaving the pascal as an exercise for the student ;-) .
Don
More information about the Lazarus
mailing list