home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.comp.os.windows-10      Steaming pile of horseshit Windows 10      197,590 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 196,171 of 197,590   
   Marian to R.Wieser   
   Re: Tutorial: Notepad++ shortcuts.xml ma   
   11 Dec 25 20:21:22   
   
   XPost: alt.comp.os.windows-11, alt.comp.microsoft.windows   
   From: marianjones@helpfulpeople.com   
      
   R.Wieser wrote:   
   >> Currently every shortcuts.xml mapping is written out as a 6-line block:   
   >>  1700 -> start search   
   > Initialize.search engine   
   >   
   >>  1601 -> set search string (funky character)   
   >>  1625 -> clear replace buffer   
   > search type. lParam=0 -> standard   
   >   
   >>  1602 -> set replacement string (ASCII equivalent)   
   >>  1702 -> run replace all   
   > how to search. lParam=768 -> Search forward, wrap-around   
   >   
   >>  1701 -> end   
   > Execute the search. lParam=1609 -> Replace all   
   >   
   >> The essential trio is:   
   >>    
   >>    
   >>    
   >> So each mapping shrinks from 6 lines > 3 lines.   
   >   
   > In the light of the above, not quite.  Maybe the the below ?   
   >   
   > -- Initialize   
   > 1700   
   > 1625   
   > 1702   
   > -- Repeated block   
   > 1601   
   > 1602   
   > 1701   
      
   I agree with anyone, no matter who they are, who makes a logically sensible   
   argument, even if it's a choice between two essentially equivalent methods.   
      
          
          
          
          
          
          
      
   Apparently you're saying we don't need to repeat the half dozen for each   
   mapping but just repeat the essential trio after initializing at the start.   
      
       
       
       
      
   I agree your organization is shorter & clearer.   
      
   Initialization (done once at the top):   
    1700   
    1625   
    1702   
   Then for each mapping:   
    1601 (set search string)   
    1602 (set replacement string)   
    1701 (end)   
      
   I agree it "should" work and it would be clearer to others in many cases.   
   Although repeating steps for each character accomplishes the same tasks.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca