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] How to strip out NUL chars... (SourceForge.net) 2. [notepad-plus - Help] RE: How to strip out NUL chars... (SourceForge.net) 3. [notepad-plus - Open Discussion] RE: Error message - "God Damn Exception:666" (SourceForge.net) 4. [notepad-plus - Open Discussion] RE: How to: 1 ^ start-of-line per line in reg (SourceForge.net) 5. [notepad-plus - Help] RE: Command line to open a new tab? (SourceForge.net) 6. [notepad-plus - Help] RE: keyboard shortcut for "Window | Windows.. (SourceForge.net) 7. [notepad-plus - Open Discussion] RE: Error message - "God Damn Exception:666" (SourceForge.net) 8. [notepad-plus - Help] RE: How to strip out NUL chars... (SourceForge.net) 9. [notepad-plus - Open Discussion] RE: Command line argument request - Readonly (SourceForge.net) 10. [notepad-plus - Open Discussion] RE: Does notepad++ supports scripting? (SourceForge.net) 11. [notepad-plus - Plugin Development] NppBase64 encoder/decoder (SourceForge.net) 12. [notepad-plus - Open Discussion] RE: How to: 1 ^ start-of-line per line in reg (SourceForge.net) 13. [notepad-plus - Plugin Development] Simple scripting plugin in development (SourceForge.net) ---------------------------------------------------------------------- Message: 1 Date: Thu, 15 Nov 2007 13:45:17 -0800 From: "SourceForge.net" <[EMAIL PROTECTED]> Subject: [Notepad-plus-plus] [notepad-plus - Help] How to strip out NUL chars... 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=4626054 By: nobody I open a log file in Notepad, and I get just text, which is great. I open the same file in Notepad++ and I get a NUL between every character NUL0NUL8NUL6NUL2 and so on. I know I can convert these NULs to spaces with the TextFX extension, but I would really rather just read in the file right off the bat in Notepad++. Bear in mind, if there is no way to do this, I might, Lord forfend, have to install VIM -- and that just seems like cruel and unusual punishment. ______________________________________________________________________ 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: Thu, 15 Nov 2007 13:52:22 -0800 From: "SourceForge.net" <[EMAIL PROTECTED]> Subject: [Notepad-plus-plus] [notepad-plus - Help] RE: How to strip out NUL chars... 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=4626070 By: nobody You really must have done something terribly wrong, causing this punishment. ______________________________________________________________________ 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: Thu, 15 Nov 2007 14:33:25 -0800 From: "SourceForge.net" <[EMAIL PROTECTED]> Subject: [Notepad-plus-plus] [notepad-plus - Open Discussion] RE: Error message - "God Damn Exception:666" 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=4626131 By: nobody To take a wonderful product, a true labor of love, as an excuse for ranting on medieval fanatical chants, is a moron's choice. I propose we move on, and start a thread with recommendations of wonderful and wymsical error messages we would love to see come out of N++. Starting the flow: * Your file got creamed because it lacks all sense of humour * On recursion, like on evolution, "the jury is still out". Thus, this exception (almost literally picked up from that other great moron...) * Your file has been kidnapped. Have sex on the grass, under a full moon's light, and you will find it again in your disk. Thanks for your awesome product, and may the spaghetti monster protect us from so many idiots walking this flat earth... ______________________________________________________________________ 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: 4 Date: Thu, 15 Nov 2007 15:20:42 -0800 From: "SourceForge.net" <[EMAIL PROTECTED]> Subject: [Notepad-plus-plus] [notepad-plus - Open Discussion] RE: How to: 1 ^ start-of-line per line in reg 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=4626197 By: pshute It seems to me that the argument going on here is about the original intention of the thread. As English is not the native language of a large number of users of this forum, I wonder if hair splitting about precise meanings is a good idea. It usually isn't anyway. It would also help if some of you people registered and logged in before posting - it's hard to work out who said what when everyone is called "nobody". He had a problem, caused by ^ not being treated as once per line. He found a workaround, but is suggesting that this behaviour be changed. That's what should be being discussed. His question: "Wouldn't it make more sense to automatically treat the ^ start-of-line as "1 per line" feature, allowing users to do this repeatedly (on the changed line) by checking the Incremental checkbox? Additionally, checking Incremental when using $ might be implemented as "Check again the end of the line (until no longer matched)". I would very much welcome ^ and $ to be treated "equally" in this way, that is, with the same options checked both ^ and $ work either _only once per line_ or _repeatedly_. Are there any advocates for this?" ______________________________________________________________________ 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: Thu, 15 Nov 2007 15:25:14 -0800 From: "SourceForge.net" <[EMAIL PROTECTED]> Subject: [Notepad-plus-plus] [notepad-plus - Help] RE: Command line to open a new tab? 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=4626202 By: pshute Not according to http://notepad-plus.wiki.sourceforge.net/Command+Line+Switches . The best you could do would be to cause it to open up in a new instance, but that's what you hated about notepad. ______________________________________________________________________ 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: 6 Date: Thu, 15 Nov 2007 15:31:21 -0800 From: "SourceForge.net" <[EMAIL PROTECTED]> Subject: [Notepad-plus-plus] [notepad-plus - Help] RE: keyboard shortcut for "Window | Windows.. 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=4626214 By: pshute Alt+WW? ______________________________________________________________________ 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: 7 Date: Thu, 15 Nov 2007 15:38:11 -0800 From: "SourceForge.net" <[EMAIL PROTECTED]> Subject: [Notepad-plus-plus] [notepad-plus - Open Discussion] RE: Error message - "God Damn Exception:666" 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=4626224 By: andydean Reading this thread in it's entirety i find it very sad that people who want to make their feelings felt can't even be bothered to adopt a username. All I can say is keep up the great work Don. It's much appreciated. ______________________________________________________________________ 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: 8 Date: Thu, 15 Nov 2007 15:42:35 -0800 From: "SourceForge.net" <[EMAIL PROTECTED]> Subject: [Notepad-plus-plus] [notepad-plus - Help] RE: How to strip out NUL chars... 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=4626232 By: pshute This thread might help you: https://sourceforge.net/forum/message.php?msg_id=3977394 ______________________________________________________________________ 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: 9 Date: Thu, 15 Nov 2007 15:45:17 -0800 From: "SourceForge.net" <[EMAIL PROTECTED]> Subject: [Notepad-plus-plus] [notepad-plus - Open Discussion] RE: Command line argument request - Readonly 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=4626238 By: pshute I think that parameter might be only in the very latest version. It isn't mentioned at http://notepad-plus.wiki.sourceforge.net/Command+Line+Switches . ______________________________________________________________________ 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: 10 Date: Thu, 15 Nov 2007 17:20:41 -0800 From: "SourceForge.net" <[EMAIL PROTECTED]> Subject: [Notepad-plus-plus] [notepad-plus - Open Discussion] RE: Does notepad++ supports scripting? 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=4626329 By: fidvo Yes, it will be a new script language, although like I mentioned, it will be very primitive. It won't have any of the features that would make it a real scripting language, like Python or Perl for instance. All it will do is allow you to write a series of functions with parameters that will process the entire document or just what you have highlighted. It will execute the functions one at a time on the text and export the finished product back out to the document. I'll start a new thread on the Plugin Development forum as soon as I get my plans a little more concrete so that I can get some input on what functions people would like. ______________________________________________________________________ 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: 11 Date: Thu, 15 Nov 2007 17:39:32 -0800 From: "SourceForge.net" <[EMAIL PROTECTED]> Subject: [Notepad-plus-plus] [notepad-plus - Plugin Development] NppBase64 encoder/decoder 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=4626344 By: donho A Base64 encoder/decoder is available here : http://sourceforge.net/projects/npp-plugins/ Post your compliment here :) Don ______________________________________________________________________ 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=482781 ------------------------------ Message: 12 Date: Thu, 15 Nov 2007 18:14:48 -0800 From: "SourceForge.net" <[EMAIL PROTECTED]> Subject: [Notepad-plus-plus] [notepad-plus - Open Discussion] RE: How to: 1 ^ start-of-line per line in reg 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=4626373 By: nobody Yes I would advocate what you just said (and it's too late for me to log in with name) but none of this matters if the regular expression engine is third party. (Forgive me for not knowing as I'm brand new.) If it's under Don's direction it would be nice to hear from him. ______________________________________________________________________ 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: 13 Date: Thu, 15 Nov 2007 18:22:02 -0800 From: "SourceForge.net" <[EMAIL PROTECTED]> Subject: [Notepad-plus-plus] [notepad-plus - Plugin Development] Simple scripting plugin in development 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=4626378 By: fidvo I've just started working with Notepad++ Plugins, and my first will a simple scripting system to process text. Why simple? Because I don't have much experience with writing parsers, so this is the best I can come up with. I'm calling it SimpleScript in order to distinguish it from the currently nonexistent advanced scripting system that I'm still hoping that someone will design later. I originally designed it to help me convert plain text e-books to HTML without having to repeat the same sequence of steps over and over again (I think I've replaced "\r\n" with "</p>\r\n<p>" on a couple of hundred documents). I wrote a couple of standalone programs that would help me do this automatically, but ever since I started using Notepad++ I've wished I could have some kind of generic scripting tool built in that I could use for this and other purposes, to make Notepad++ my all-in-one toolbox. The old adage "if you want something done, you gotta do it yourself," applies, so that's why I'm designing this. You'll notice that some of the functions lend themselves well to formatting e-books. This system should be generic enough that it can be used not just for converting e-books, but for a variety of other purposes. It will also be very simple to use. Like I said earlier, I lack the skill to write an advanced parser, but I think this will be useful anyway. The basic idea is this: You select "Simple Script" from the menu, and it opens a window where you can type in a script. A script is just a sequence of functions with parameters, one function per line. No branching, no looping, no nested functions, no variables. When you execute the script, it will grab the currently selected text in the document (or the entire document if no text is selected), run the functions one at a time on it, then export the end result back out to replace either the selected text or the entire document. Some of the functions operate on specific lines, some of them operate on every line in the text, and some of them operate on the relationships between the lines. I plan to include the ability to save the scripts out to files for later retrieval, and to internally maintain a list of your favorite scripts, perhaps in an .ini file, so that you can just choose them off a list instead of having to search for the file. And of course, copy and paste to and from the script window. I'm going to have some time over the weekend to work on it, and I hope to have the basic framework done in that time. Then it's just a matter of writing the functions themselves. So far I have fifteen functions planned: add(text): Adds a line of text to the end of the document. beginline(text): Appends text to the beginning of every line. delete(linestart,lineend): Deletes all lines between linestart and lineend. endline(text): Appends text to the end of every line. insert(text,linenumber): Inserts a line of text at the specified line number. replace(oldtext,newtext): Replaces all instances of oldtext with newtext. replacecase(oldtext,newtext): Replaces all instances of oldtext with newtext, but with case-sensitive matching. replaceline(text,linenumber): Replaces a line of text at the specified line number. setblanks(minblank,maxblank,threshhold): Changes the number of blank lines between lines. sort(): Sorts all lines in the document. trim(badchars): Strips all badchars from the beginning and end of every line. trimleft(badchars): Strips all badchars from the beginning of every line. trimright(badchars): Strips all badchars from the end of every line. unwrap(blanklinecount,spacecount,tabcount): Strips hard returns based upon the parameters. wrap(columncount,splitwords): Adds hard returns to force columns to a certain width. And before you ask, yes, I plan to include \r, \n, and \t in the replace and replacecase functions. No regular expressions though, sorry. At least not unless someone is willing to do the programming for me (I should warn you, I use Delphi, not C). I have a more detailed writeup of the above functions that will be included in the readme file, but I haven't posted it here, so you may be thinking "what the heck?" on some of them. If you want more clarification, just let me know. Right now, I'd like to know what other functions people might like. Any ideas? ______________________________________________________________________ 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=482781 ------------------------------ ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. 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 18, Issue 47 *************************************************