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 notepad-plus-plus-requ...@lists.sourceforge.net You can reach the person managing the list at notepad-plus-plus-ow...@lists.sourceforge.net 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 - Open Discussion] RE: Change character/codepage encoding (SourceForge.net) 2. [notepad-plus - Open Discussion] RE: BUG? in the SQL style? (SourceForge.net) 3. [notepad-plus - Plugin Development] New Release - Plugin Interface Library (SourceForge.net) 4. [notepad-plus - Open Discussion] New Release - NppPlugin_ChangeMarkers (SourceForge.net) 5. [notepad-plus - Open Discussion] RE: Change character/codepage encoding (SourceForge.net) 6. [notepad-plus - Open Discussion] RE: FILE SEARCH IDEAS (SourceForge.net) 7. [notepad-plus - Open Discussion] RE: Change character/codepage encoding (SourceForge.net) 8. [notepad-plus - Open Discussion] RE: Change character/codepage encoding (SourceForge.net) 9. [notepad-plus - Help] RE: Convert paragraph to one line (SourceForge.net) ---------------------------------------------------------------------- Message: 1 Date: Sun, 05 Apr 2009 02:46:11 +0000 From: "SourceForge.net" <nore...@sourceforge.net> Subject: [Notepad-plus-plus] [notepad-plus - Open Discussion] RE: Change character/codepage encoding To: nore...@sourceforge.net Message-ID: <7078605.331...@sourceforge.net> Content-Type: text/plain; charset="UTF-8" Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=7078605 By: fwoncn sorry, muelll. I really don't catch it. Do you mean a text file storing "????" should being displayed as "???? " in Firefox using the encoding you give above? But it turns out to be messy code in like manner in my computer. Whatever, using UTF-8 as your default encoding for all conditions, opening/editing/coding/saving/..., may help solve most of the problems caused by localization, I guess. btw, if it's quite convenient, it will be great to mail me a sample file ( fwoncn [at] gmail ) ______________________________________________________________________ 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: 2 Date: Sun, 05 Apr 2009 03:30:56 +0000 From: "SourceForge.net" <nore...@sourceforge.net> Subject: [Notepad-plus-plus] [notepad-plus - Open Discussion] RE: BUG? in the SQL style? To: nore...@sourceforge.net Message-ID: <7079049.331...@sourceforge.net> Content-Type: text/plain; charset="UTF-8" Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=7079049 By: fwoncn I test it and you are right. seems to be a bug before it is fixed, i suggest you three alternative ways first, ignore it, DIY :-) second, create a simple macro - use find/replace to add -- at beginning of each line within the area you quoted (this seems not to work identically, since currently(ver 5.2) Npp's macro cannot save Find(/Replace) operations) the third way, which i recommend, is to set up a user-define lang. don't walk away. it's easy work, since much you can use the now-existing sql lang model to decrease your workload - 1. setting - styler configurator 2. copy sql's default keywords to a temporary file 3. view - User Define Dialogue, create new 4. paste the keywords you got before and define the comment symbol as -- 5. this step is kind of irritating, add all operators of sql 6. edit stylers.xml in Npp install folder - copy sql's default settings to the block of the language you defined ok, it's done. now you can use the block comment option. ______________________________________________________________________ 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: 3 Date: Sun, 05 Apr 2009 03:44:45 +0000 From: "SourceForge.net" <nore...@sourceforge.net> Subject: [Notepad-plus-plus] [notepad-plus - Plugin Development] New Release - Plugin Interface Library To: nore...@sourceforge.net Message-ID: <7079097.482...@sourceforge.net> Content-Type: text/plain; charset="UTF-8" Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=7079097 By: aathell Finally available! The Notepad++ Plugin Interface Library. What is it? A library to help other plugin makers by providing some commonly repeated functions/methods and some not so common but helpful functions that allow the plugin writer to concentrate more on writing the logic they want rather than the functions required to get the plugin up and running in the first place. Which isn't actually difficult, but can be tedious. The library currently provides the following: * The basic interface enhancement provides plugin registration and handle controls, with * multiple common ways to access view handles. * * The ExtLexer extension provides styler (lexer) registration helper functions for implementing * external lexers. * * - Both of those also allow for function registration. The basic difference between the * two function registrations is the base functions display under a separator in the order * registered, and the ExtLexer registered functions get sorted and displayed above the * separator. * * The CmdMap extension allows plugins to use an internal enum value for a cmdId when working * with registered N++ funcItems. This allows the plugin writer to register the commands * with N++ in one order yet use the command values from an enum in an order more useful to * the code, as well as not needing to deal with the funcItem array, and instead can use a * call ( getCmdId( CMD_HIGHLIGHT ) ) to get the assigned N++ menu command id. * * The DocTabMap provides plugins some common helper functions that allows plugins to get * the Scintilla document id from a N++ bufferId, determine if a file is open and ready, and * get the Scintilla document id for the actively focused document in either N++ view. * * The XmlConfig extension makes it easy for a plugin to read/write configuration data in * the same way that N++ does. So, if the plugin provides styling, the plugins' styles * xml can also be used for config params. * * The Markers extension provides plugins with functions to read and react to the basic * Notepad++/Scintilla margin and marker settings. For instance if the plugin provides * a marker the defineMarker function will check for a valid and free marker number to use, * as well as set the mask information for the margins in both views. * * The ActionIndex extension provides an action counter for a given document synchronized * with the users actions for inserte/delete/undo/redo actions. * * The ActionHistory extension provides a history container for a plugin to store actions * that it wants to have tied to the users insert/delete/undo/redo actions. It uses the * ActionIndex count for the 'major' index and allows multiple action item entries per index * ( or 'minor index' ). An example of this is the NppPlugin_ChangeMarker plugin that shows * lines that have changed since a document was opened and if those changes are saved or not. * * Lastly, the msgs extension provides a common place to store inter plugin msg definitions. What's required? The library NppPluginIface.lib to build your plugin against, or if you want to build the library yourself then boost headers need to be installed ( you don't need the boost binary install ). Either way you'll need the source code which is downloadable as a full VS 2008 solution zip from the Windows Skydrive located at: http://cid-71a486ea08eb407c.skydrive.live.com/browse.aspx/.Public/NppPluginIface ( it includes everything except the N++ source and boost headers ). If you are going to build against the library without installing the boost headers the NppPluginIface.lib is located in the vc_9_0_sln folder in both the Debug_Unicode and Release_Unicode folders, which is what made the download just over 5MB. If you use the provided solution it will find them there. Just be sure to make a backup of the .lib files somewhere on your system in case you 'clean' and accidently erase them. Also included is the source code for several plugins. NppPlugin_Template NppPlugin_ChangeMarker NppPlugin_SciMarkerSymbol NppPlugin_PluginMargin NppPlugin_ExtLexer ( an update to the previously released NppExternalLexers project ) If there is anyone out there that wants to make additions to the library I'll be setting up a repo in the near future and am considering either svn or git, so make your voice heard. :) Right now it is in a svn repo, but I'd like to see it be more available for one-off hacks as well as major additions. I hope others find this to be a useful and helpful library! almostautomated ______________________________________________________________________ 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: 4 Date: Sun, 05 Apr 2009 04:09:54 +0000 From: "SourceForge.net" <nore...@sourceforge.net> Subject: [Notepad-plus-plus] [notepad-plus - Open Discussion] New Release - NppPlugin_ChangeMarkers To: nore...@sourceforge.net Message-ID: <7079191.331...@sourceforge.net> Content-Type: text/plain; charset="UTF-8" Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=7079191 By: aathell As outlined in an earlier post, the change indicator plugin is now available for release. As we all know, change indicators have made there way into the N++ source already. I'm not sure what features that this plugin offers will become part of the official release due to some of my coding decisions and build requirements, yet I believe that each of these features is needed to give the user control. This may not need to be stated, but this plugin indicates lines that have changed since the file was loaded, and since it was saved. These indicators should be accurate across text inserts, deletes, find/replace, undo and redo. Features include: 1. Custom margin icons - you can create a custom icon to place in the margin to indicate saved/un-saved changes in a third party app ( like the free Greenfish icon editor ). 2. Control over the color of both saved and un-saved markers when using any of the built-in Scintilla markers, or as a line highlighter. 3. Control over change marker placement - - to the left of the line-numbers as a vertical line - in the same margin as bookmarks. - in the plugin marker margin ( closest to the left of the text area ). 4. Ability to jump through the un-saved changed lines in a document: - Jump up/down to next un-saved changed line. - Jump to previous/next un-saved changed line ( in the order changes happened ). 5. Ability to disable change markers, both on a per document or global level. The binary is for Unicode only, the source can be downloaded and built as ansi. To install, download the NppPlugin_ChangeMarker_bin zip from the Windows skydrive at: http://cid-71a486ea08eb407c.skydrive.live.com/browse.aspx/.Public/NppPluginIface ?view=details And unzip to your plugins folder. Start-up Notepad++ and enjoy. Looking forward to some feedback, almostautomated ______________________________________________________________________ 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, 05 Apr 2009 09:06:49 +0000 From: "SourceForge.net" <nore...@sourceforge.net> Subject: [Notepad-plus-plus] [notepad-plus - Open Discussion] RE: Change character/codepage encoding To: nore...@sourceforge.net Message-ID: <7081709.331...@sourceforge.net> Content-Type: text/plain; charset="UTF-8" Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=7081709 By: muelll Just tested this again and it certainly works for me. I will send you the sample file, but if anyone else is interested here are the steps: 1. Copy&Paste "????" into a Notepad from Windows 2. Save the file make sure it uses the ANSI encoding and not Unicode 3. Open the file in Firefox. It should first display "????" 4. Change encoding to Windows-1251 (View -> Character Encoding -> Cyrillic (Windows-1251)) and this will correctly display "????" ______________________________________________________________________ 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, 05 Apr 2009 09:40:33 +0000 From: "SourceForge.net" <nore...@sourceforge.net> Subject: [Notepad-plus-plus] [notepad-plus - Open Discussion] RE: FILE SEARCH IDEAS To: nore...@sourceforge.net Message-ID: <7082155.331...@sourceforge.net> Content-Type: text/plain; charset="UTF-8" Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=7082155 By: steakhacher Hi, Indeed but i could be a good idea to just hav ea check box which internally replace the standard line typed by user by a regular expression which ignore spaces and tab between words exemple $variable['anythink'] ="a"; could automaticcally be processed as $\s*variable\s*\[\s*'\s*anythink\s*'\]\s*=\s*"s*a\s*"; I think it is not a mandatory function but could be nice to have ______________________________________________________________________ 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, 05 Apr 2009 11:53:52 +0000 From: "SourceForge.net" <nore...@sourceforge.net> Subject: [Notepad-plus-plus] [notepad-plus - Open Discussion] RE: Change character/codepage encoding To: nore...@sourceforge.net Message-ID: <7083424.331...@sourceforge.net> Content-Type: text/plain; charset="UTF-8" Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=7083424 By: bdelv I have the same problem. Have to edit greek code files (Dos codepage 737). Would be great to be able to change the Notepad++ default codepage (different from the system one). Would be even better to be able to set a different one for each file extension. ______________________________________________________________________ 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: Sun, 05 Apr 2009 12:23:06 +0000 From: "SourceForge.net" <nore...@sourceforge.net> Subject: [Notepad-plus-plus] [notepad-plus - Open Discussion] RE: Change character/codepage encoding To: nore...@sourceforge.net Message-ID: <7083561.331...@sourceforge.net> Content-Type: text/plain; charset="UTF-8" Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=7083561 By: fwoncn Hi muelll, I think you are right. check your mail this problem does exist in Npp 5.2 (I haven't used the latest version) ______________________________________________________________________ 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, 05 Apr 2009 14:34:31 +0000 From: "SourceForge.net" <nore...@sourceforge.net> Subject: [Notepad-plus-plus] [notepad-plus - Help] RE: Convert paragraph to one line To: nore...@sourceforge.net Message-ID: <7084823.331...@sourceforge.net> Content-Type: text/plain; charset="UTF-8" Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=7084823 By: cchris Here is the problem: Internally, N++ uses the builtin ability of the Scintilla control to record messages sent to it. So, basically, you record and replay Scintila messages. This has been extended to some stuff that is not exactly Scintilla, but could fit anyway. Recording and replaying a search action means recording the options, active tab and closing button when the search is launched, and serialising the whole bunch to config.xml. This would be a welcome extension, but isn't exactly trivial. This is why I suggested you to use a keyboard macro third pparty replayer instead, using accelerators for everything. Note that this is not failproof, because the three checkboxes on the top left of the Find tab on the search box don't have an accelerator, so they should not be changed as part of the search action. At least I cannot see any for them. The same applies to any command that relies on a dialog box or external input source to define the action to be performed. Like changing some sort of preference. Don, or anyone familiar with the source, please feel free to correct any inaccuracy or worse in the above. CChris ______________________________________________________________________ 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 ------------------------------ ------------------------------------------------------------------------------ ------------------------------ _______________________________________________ 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 35, Issue 7 ************************************************