anchor.diff:      If (Pos(UNTitle,S)<>0)  //We may have an uploadName tiddler
          or (Pos(UURLTitle,S)<>0) //We may have an uploadURL tiddler
          or (Pos(LibModule,S)<>0) //We may need to add the config
  +       or (Pos(PasswordChk,S)<>0) //We have the section for password check
          then
       begin
         //Go ahead and do all the regex checking 
         //if woAlways was specified
         if When = woAlways then
         begin
  +        ReplaceWantPassword(S);
           ReplaceUploadName(S,When);
           ReplaceUploadURL(S,PortStr,When);
           MaybeAddSavingConfig(S,PortStr,When);
  
positive.code:       // 1. Read buffer from input wikifile
        // 2. Update buffer if necessary
        // 3. Write buffer back to output wikifile
        SetLength(Buffer,4096);
        MakeDirs(OutFile);
        WikiS := TFileStream.Create(WikiFile, fmOpenRead or fmShareDenyWrite);
        OutS := TFileStream.Create(OutFile, fmCreate);
        Log('Updating saving configuration in ''' + OutFile + '''.');
  
        //We overlap the reading buffers by 500 bytes in order to 
        //prevent any of the regex matches to fail because of the string
        //being split at the boundary of two buffers. 500 bytes accomodates
        //enough space for the largest string matching any of the regexes
        //in the replace/add functions
        ReadCount := WikiS.Read(Buffer[1],4096);
        SetLength(Buffer,ReadCount);
        ReplaceOrAddConfig(Buffer,Port,When);
        OutS.Write(Buffer[1],Length(Buffer)*SizeOf(Char));
        repeat
          WikiS.Seek(-OVERLAP,soCurrent);
          ReadCount := WikiS.Read(Buffer[1],4096);
          SetLength(Buffer,ReadCount);
          ReplaceOrAddConfig(Buffer,Port,When);
          OutS.Write(Buffer[OVERLAP+1],Length(Buffer)*SizeOf(Char)-OVERLAP);
  
negative.code:      UNTitle='title="$:/UploadName"';
       UURLTitle='title="$:/UploadURL"';
       LibModule='id="libraryModules"';
       PasswordChk='UploadPlugin';
    Var
      PortStr: string;
  
  