home bbs files messages ]

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

   alt.comp.os.windows-11      Steaming pile of horseshit Windows 11      4,852 messages   

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

   Message 3,095 of 4,852   
   R.Wieser to All   
   Re: Tutorial: Notepad++ shortcuts.xml ma   
   11 Dec 25 19:46:53   
   
   XPost: alt.comp.os.windows-10, alt.comp.microsoft.windows   
   From: address@is.invalid   
      
   Arlen,   
      
   > 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   
      
   Odd though : you have posted the standard macros, as if you have not tested   
   your "the essential trio" conclusion yourself ...   
      
   And a remark : When you replace something with something else, and than   
   later replace that something else by something-yet-else you won't like the   
   result (no occurence of "something else" will remain).   You need the second   
   replace come before the first one.   
      
   Also, replacing something with itself doesn't really do much. :-)   
      
   And a hint : make sure that all indentation is correct before hitting the   
   "send" button.  Seeing the "action" lines having four different indentations   
   looks ugly.  Same for wrapping replace-blocks (those 6 lines you spoke of)   
   with empty lines.  Either do it everywhere, or do it nowhere.   
      
   And I almost forgot : You need to be carefull when replacing special chars   
   with phrases.  You might have better results when wrapping the phrases with   
   spaces ( see "->" and "deg")   
      
   And noticed while walking thru that list :   
   " " is a thin space, not an "x".   
   "&#151;" to "&" ?  Not a dash ?   
   '"'  with single-quotes around it instead of double ones ?   Any reason   
   for that ?   
   "apos;" ?  Why not just a single quote thats available on you keyboard ?   
   " " is a hard space, not a quote.   
   "‘" and "’" are twice in there.   
   "*" is a standard ASCII char ("*").  Why not use it instead ?   
      
   Regards,   
   Rudy Wieser   
      
   --- 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