Send Notepad-plus-plus mailing list submissions to notepad-plus-plus@lists.sourceforge.net
To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/notepad-plus-plus or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than "Re: Contents of Notepad-plus-plus digest..." Today's Topics: 1. [notepad-plus - Help] Regular Expression (SourceForge.net) 2. [notepad-plus - Help] RE: Multi language document support? (SourceForge.net) 3. [notepad-plus - Help] RE: Regular Expression (SourceForge.net) 4. [notepad-plus - Open Discussion] RE: Search In Notepad++ (SourceForge.net) 5. [notepad-plus - Open Discussion] RE: Feature request: Close current tab icon (SourceForge.net) 6. [notepad-plus - Open Discussion] RE: Feature request: Close current tab icon (SourceForge.net) 7. [notepad-plus - Help] RE: Regular Expression (SourceForge.net) 8. [notepad-plus - Open Discussion] RE: Hide lines - doen't save them! (SourceForge.net) 9. [notepad-plus - Help] RE: Regular Expression (SourceForge.net) 10. [notepad-plus - Help] How do I print the line number? (SourceForge.net) 11. [notepad-plus - Help] RE: How do I print the line number? (SourceForge.net) 12. [notepad-plus - Open Discussion] RE: File association (SourceForge.net) ---------------------------------------------------------------------- Message: 1 Date: Sun, 20 Jan 2008 09:36:08 -0800 From: "SourceForge.net" <[EMAIL PROTECTED]> Subject: [Notepad-plus-plus] [notepad-plus - Help] Regular Expression To: [EMAIL PROTECTED] Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="UTF-8" Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4731977 By: nobody With <ctrl-H> I get standard Notepad++ Find/research menue. There is no switch to control greedyness for regular expressions. But with <ctrl-R> there is a more comprehensive inferface, at least including a switch for "one replacement per line". Question: is there any hint where to find a help file for the <ctrl-R> menue? ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=331754 ------------------------------ Message: 2 Date: Sun, 20 Jan 2008 09:49:35 -0800 From: "SourceForge.net" <[EMAIL PROTECTED]> Subject: [Notepad-plus-plus] [notepad-plus - Help] RE: Multi language document support? To: [EMAIL PROTECTED] Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="UTF-8" Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4731986 By: nobody Mix of PHP, HTML and JavaScript code. I know PHP Designer supports this, but any way to do it in N++? ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=331754 ------------------------------ Message: 3 Date: Sun, 20 Jan 2008 10:50:04 -0800 From: "SourceForge.net" <[EMAIL PROTECTED]> Subject: [Notepad-plus-plus] [notepad-plus - Help] RE: Regular Expression To: [EMAIL PROTECTED] Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="UTF-8" Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4732046 By: nobody Take a look at this: http://notepad-plus.sourceforge.net/uk/regExpList.php ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=331754 ------------------------------ Message: 4 Date: Sun, 20 Jan 2008 11:09:55 -0800 From: "SourceForge.net" <[EMAIL PROTECTED]> Subject: [Notepad-plus-plus] [notepad-plus - Open Discussion] RE: Search In Notepad++ To: [EMAIL PROTECTED] Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="UTF-8" Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4732064 By: nobody Thanks! Notepad++ is amazing! ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=331753 ------------------------------ Message: 5 Date: Sun, 20 Jan 2008 12:23:58 -0800 From: "SourceForge.net" <[EMAIL PROTECTED]> Subject: [Notepad-plus-plus] [notepad-plus - Open Discussion] RE: Feature request: Close current tab icon To: [EMAIL PROTECTED] Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="UTF-8" Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4732139 By: nobody Thanks for an awesome application! For what it's worth, I would love to see this feature too. I'm in Firefox all day long and am used to clicking on the red x to close a tab. Thanks. ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=331753 ------------------------------ Message: 6 Date: Sun, 20 Jan 2008 13:27:16 -0800 From: "SourceForge.net" <[EMAIL PROTECTED]> Subject: [Notepad-plus-plus] [notepad-plus - Open Discussion] RE: Feature request: Close current tab icon To: [EMAIL PROTECTED] Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="UTF-8" Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4732222 By: nobody How about checking "Enable close button on each tab" under Settings, Preferences... on the Global tab? ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=331753 ------------------------------ Message: 7 Date: Sun, 20 Jan 2008 14:45:40 -0800 From: "SourceForge.net" <[EMAIL PROTECTED]> Subject: [Notepad-plus-plus] [notepad-plus - Help] RE: Regular Expression To: [EMAIL PROTECTED] Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="UTF-8" Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4732291 By: pshute This might be interesting too: http://notepad-plus.wiki.sourceforge.net/FindReplaceNewlineHowTo ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=331754 ------------------------------ Message: 8 Date: Sun, 20 Jan 2008 14:57:15 -0800 From: "SourceForge.net" <[EMAIL PROTECTED]> Subject: [Notepad-plus-plus] [notepad-plus - Open Discussion] RE: Hide lines - doen't save them! To: [EMAIL PROTECTED] Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="UTF-8" Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4732302 By: pshute It does that for me too, although I'm only running v4.2.2. As a workaround, it doesn't do it if you have two files showing on screen at the same time using Multi-view. See: http://notepad-plus.wiki.sourceforge.net/Multi-ViewHowTo if you haven't used it before. ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=331753 ------------------------------ Message: 9 Date: Sun, 20 Jan 2008 15:29:46 -0800 From: "SourceForge.net" <[EMAIL PROTECTED]> Subject: [Notepad-plus-plus] [notepad-plus - Help] RE: Regular Expression To: [EMAIL PROTECTED] Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="UTF-8" Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4732323 By: nobody Why is there such an extensive text about Windows, Mac and Unix newlines? As far as I know, the dialogs work the same for _any_ newline character string, so this may only be confusing to users that normally don't have to worry about that. If you don't want to keep this information from users, please put it at the end of the explanation as a remark. Also the tip to switch to Hex mode is kind of more than needed. Why? Simply select a newline character by pressing End, then CursorRight. Showing newline characters may be of help, but isn't needed. The same goes for tabs, add this as a tip. ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=331754 ------------------------------ Message: 10 Date: Sun, 20 Jan 2008 16:48:56 -0800 From: "SourceForge.net" <[EMAIL PROTECTED]> Subject: [Notepad-plus-plus] [notepad-plus - Help] How do I print the line number? To: [EMAIL PROTECTED] Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="UTF-8" Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4732395 By: nobody How do I include the line number on a printed hard copy? Thanks! ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=331754 ------------------------------ Message: 11 Date: Sun, 20 Jan 2008 16:51:31 -0800 From: "SourceForge.net" <[EMAIL PROTECTED]> Subject: [Notepad-plus-plus] [notepad-plus - Help] RE: How do I print the line number? To: [EMAIL PROTECTED] Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="UTF-8" Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4732398 By: nobody D'oh! 10 more seconds and I found it. Settings--> Prefs --> Print- Color and Marge --> select 'Print Line Number' ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=331754 ------------------------------ Message: 12 Date: Sun, 20 Jan 2008 17:57:26 -0800 From: "SourceForge.net" <[EMAIL PROTECTED]> Subject: [Notepad-plus-plus] [notepad-plus - Open Discussion] RE: File association To: [EMAIL PROTECTED] Message-ID: <[EMAIL PROTECTED]> Content-Type: text/plain; charset="UTF-8" Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4732451 By: nobody First off - great product. As with otheres, my only issue is how NPP handles file association. When working with BAT, CMD, VBS, etc.; NPP replaces the open command - which then prevents the ability to execute the scripts. I started looking at the registry to see how NPP associates to file extensions. NPP creates one entry key under the HKEY_CLASSES_ROOT called "Notepad++_file". See below for the full registry entry. In my opinion, this is NPP's down fall. By only creating one entry, all extensions are associated to this key. Notice there is no "edit" key under the "shell" key. The "open" key is set to use NPP to open files. As some of us have experienced, this causes problems with a file with the BAT, CMD, VBS, etc. extensions. Instead of executing the script, it opens it into NPP. Actually, with some file extensions (i.e., BAT & CMD), there should also be a print menu option. This is gone after associating to NPP. Let's take the BAT extension as an example. Below is how it looks like in the registry before associating to NPP. ---------------------------------------------------------------- Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\.bat] @="batfile" [HKEY_CLASSES_ROOT\.bat\PersistentHandler] @="{5e941d80-bf96-11cd-b579-08002b30bfeb}" ---------------------------------------------------------------- Below is how it looks like after it's associated to NPP. ---------------------------------------------------------------- Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\.bat] @="Notepad++_file" "Notepad++_backup"="batfile" [HKEY_CLASSES_ROOT\.bat\PersistentHandler] @="{5e941d80-bf96-11cd-b579-08002b30bfeb}" ---------------------------------------------------------------- Notice the default string value is "Notepad++_file". Below is the registry entry for "Notepad++_file". Notice there are no Edit or Print entries. Just an Open, which overrides the default execute behavior for this file extension. ---------------------------------------------------------------- Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Notepad++_file] @="Notepad++ Document" [HKEY_CLASSES_ROOT\Notepad++_file\shell] [HKEY_CLASSES_ROOT\Notepad++_file\shell\open] [HKEY_CLASSES_ROOT\Notepad++_file\shell\open\command] @="\"C:\\Program Files\\Notepad++\\notepad++.exe\" \"%1\"" ---------------------------------------------------------------- Below is how the "batfile" (default definition by Windows for BAT extensions) entries look like in the registry. Notice it has Edit, Open, and Print entries. Also notice it contains the icon for this extension and the name of this type (MS-DOS Batch File). ---------------------------------------------------------------- Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\batfile] @="MS-DOS Batch File" "EditFlags"=hex:30,04,00,00 [HKEY_CLASSES_ROOT\batfile\DefaultIcon] @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\ 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,00,68,00,\ 65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,31,00,35,\ 00,33,00,00,00 [HKEY_CLASSES_ROOT\batfile\shell] [HKEY_CLASSES_ROOT\batfile\shell\edit] [HKEY_CLASSES_ROOT\batfile\shell\edit\command] @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\ 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\ 54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,25,00,31,00,00,\ 00 [HKEY_CLASSES_ROOT\batfile\shell\open] "EditFlags"=hex:00,00,00,00 [HKEY_CLASSES_ROOT\batfile\shell\open\command] @="\"%1\" %*" [HKEY_CLASSES_ROOT\batfile\shell\print] [HKEY_CLASSES_ROOT\batfile\shell\print\command] @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\ 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\ 54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,2f,00,70,00,20,\ 00,25,00,31,00,00,00 [HKEY_CLASSES_ROOT\batfile\shellex] [HKEY_CLASSES_ROOT\batfile\shellex\DropHandler] @="{86C86720-42A0-1069-A2E8-08002B30309D}" [HKEY_CLASSES_ROOT\batfile\shellex\PropertySheetHandlers] [HKEY_CLASSES_ROOT\batfile\shellex\PropertySheetHandlers\PifProps] @="{86F19A00-42A0-1069-A2E9-08002B30309D}" [HKEY_CLASSES_ROOT\batfile\shellex\PropertySheetHandlers\ShimLayer Property Page] @="{513D916F-2A8E-4F51-AEAB-0CBC76FB1AF8}" ---------------------------------------------------------------- I've reviewed how other editors update the registry properly. Below is an example. First off, NPP should create an entry for each extension (i.e., Notepad++_bat, Notepad++_cmd, Notepad++_txt, Notepad++_ini, etc.). Let's take the BAT extension as an example. Most of these are copied from the "batfile" key. For the BAT extension, I updated the Edit key so it would edit the BAT file into NPP. ---------------------------------------------------------------- Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\Notepad++_bat] @="MS-DOS Batch File" "EditFlags"=hex:30,04,00,00 [HKEY_CLASSES_ROOT\Notepad++_bat\DefaultIcon] @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\ 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,00,68,00,\ 65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,31,00,35,\ 00,33,00,00,00 [HKEY_CLASSES_ROOT\Notepad++_bat\shell] [HKEY_CLASSES_ROOT\Notepad++_bat\shell\edit] [HKEY_CLASSES_ROOT\Notepad++_bat\shell\edit\command] @="\"C:\\Program Files\\Notepad++\\notepad++.exe\" \"%1\"" [HKEY_CLASSES_ROOT\Notepad++_bat\shell\open] "EditFlags"=hex:00,00,00,00 [HKEY_CLASSES_ROOT\Notepad++_bat\shell\open\command] @="\"%1\" %*" [HKEY_CLASSES_ROOT\Notepad++_bat\shell\print] [HKEY_CLASSES_ROOT\Notepad++_bat\shell\print\command] @=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\ 00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\ 54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,2f,00,70,00,20,\ 00,25,00,31,00,00,00 [HKEY_CLASSES_ROOT\Notepad++_bat\shell\printto] [HKEY_CLASSES_ROOT\Notepad++_bat\shell\printto\command] @="\"C:\\Program Files\\TextPad 5\\TextPad.exe\" -s -pt \"%1\" \"%2\" \"%3\" \"%4\"" [HKEY_CLASSES_ROOT\Notepad++_bat\shellex] [HKEY_CLASSES_ROOT\Notepad++_bat\shellex\DropHandler] @="{86C86720-42A0-1069-A2E8-08002B30309D}" [HKEY_CLASSES_ROOT\Notepad++_bat\shellex\PropertySheetHandlers] [HKEY_CLASSES_ROOT\Notepad++_bat\shellex\PropertySheetHandlers\PifProps] @="{86F19A00-42A0-1069-A2E9-08002B30309D}" [HKEY_CLASSES_ROOT\Notepad++_bat\shellex\PropertySheetHandlers\ShimLayer Property Page] @="{513D916F-2A8E-4F51-AEAB-0CBC76FB1AF8}" ---------------------------------------------------------------- After adding the entries above, the default value under the ".bat" key is updated to "Notepad++_bat". ---------------------------------------------------------------- Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\.bat] @="Notepad++_bat" "Notepad++_backup"="batfile" [HKEY_CLASSES_ROOT\.bat\PersistentHandler] @="{5e941d80-bf96-11cd-b579-08002b30bfeb}" ---------------------------------------------------------------- For those people who are familiar with updating the registry, try it for yourself. After the change, notice the following: 1. The Windows default icon is the default Windows icon for this extension. 2. The type name is "MS-DOS Batch File" and not "Notepad++ Document". 3. Double clicking on the file executes the batch file. 4. Right-click now has the edit menu; which launches NPP. 5. Right click still has a Print menu option. 6. Notice when sorting in Windows Explorer, all file extensions are group together - instead of all of them being sorted under Notepad+++ Document. In my opinion, each file extension that NPP associates to should have it's own registry key. bat = Notepad++_bat cmd = Notepad++_cmd vbs = Notepad++_vbs txt = Notepad++_txt ini = Notepad++_ini txt = Notepad++_txt This way, each file extension will maintain it's default icon and type name. In some cases like TXT, INI extensions, the Open menu command is fine to use. No need to add an Edit entry. Again, great product. I'm still going to continue using NPP, now that I know I can manually update the registry to handle file association properly. But it sure would be nice if NPP would do this for me. ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=331753 ------------------------------ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ ------------------------------ _______________________________________________ Notepad-plus-plus mailing list Notepad-plus-plus@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/notepad-plus-plus End of Notepad-plus-plus Digest, Vol 20, Issue 89 *************************************************