• nppftp and and windows 11

    Notepad++ & Plugin Development
    4
    0 Votes
    4 Posts
    98 Views
    PeterJonesP
    @PeterJones by reset itself i mean only the plugin and i mean it revert back to the state it was when i first installed it meaning no profiles, and everything else i changed also reset. simply a TOTAL reset of the plugin. That sounds like it’s not saving its config files correctly… and here is the debug info: … Admin mode: ON So this might be one thing: if you sometimes run as Admin and sometimes as normal user, config files can get their permissions messed up, which might be a culprit. In modern Notepad++, unless you are almost always editing files from the Program Files or Windows folders, there is no good reason to run As Admin consistently – as a normal run of Notepad++, if you try to save a protected file (files in Program Files, Windows, etc), Notepad++ will ask the OS, and the OS will prompt you with the elevated UAC permission to write the protected file. So unless you are saving a file to that location often enough that the UAC prompt every save becomes annoying, don’t run as Admin. Cloud Config: C:\Users\אפיק גלבוע\Documents\NppSettings Hmmm… there might be two things there, as well. First, I don’t know whether the NppFTP plugin was written with good support for Unicode characters in path names. So it might not be able to write its config to a directory like that. Second, I don’t know if NppFTP was properly written to make use of Cloud Config. If it’s using NPPM_GETPLUGINSCONFIGDIR, then it should be getting the right location, but if it’s incorrectly manually figuring out the plugin settings directory relative to AppData, it might not be computing the right path, so it might be trying to save its config in the wrong place (maybe even to a non-existent location) Look in C:\Users\אפיק גלבוע\Documents\NppSettings and see if there is an NppFTP subdirectory there. If not, then likely one of those two problems has occurred. If there is, then look at the permissions of that directory and the NppFTP.xml in it, to make sure that both your normal user and your elevated Admin have permission to write to it.
  • 0 Votes
    5 Posts
    837 Views
    PeterJonesP
    @Krzysztof-Blachnicki said: I deleted ExtSettings.ini (which was 0 byte) and… It works again. Maybe it’s n++ fault, but… For other plugins settings aren’t gone and when files are 0b they don’t cause glitchy behaviour. I’d bet it’s rather a problem with this particular plugin. If deleting the ExtSettings.ini caused the problem to go away, then I am confident it is the plugin, not Notepad++ itself, that is the culprit. The question is what now? Whom I can ask for reaction? Report the problem to @dinkumoil , the author of the plugin => https://sourceforge.net/projects/extsettings/support
  • [ALPHA] Upcoming Plugin: HiddenLexers

    Notepad++ & Plugin Development
    14
    1
    2 Votes
    14 Posts
    461 Views
    mpheathM
    @PeterJones Looking through the readme.md. Perhaps could make it easier for users to have a properties list for the lexer options, like possibly from https://github.com/mpheath/xconfig-for-notepad-plus-plus/blob/bed2f415648623b6ce0f49b6ed333fbedfdba8be/xconfig.properties#L122-L585 Possibly, a little bit of your regex tricks could rearrange to get the list of options into a file for users to view. SciTE Doc has a good lexer property listing: https://scintilla.org/SciTEDoc.html#property-xml.auto.close.tags which is where the source of information can be viewed in HTML. Getting all the information to insert into the json file is the challenge. I just thought of the Nim lexer. Notepad++ still uses the deprecated Nimrod lexer though I do not use Nim. You can see some of the hackery I had to do to recognize the Nim lexer from the Nimrod lexer here with PythonScript. Nim users who want an improved Nim lexer can access it with the HiddenLexers plugin. So benefits exist for those with the interest in the hidden lexers.
  • Search++ (\W)'(\w) regex replace failure

    Notepad++ & Plugin Development
    22
    0 Votes
    22 Posts
    684 Views
    CoisesC
    @M-Andre-Z-Eckenrode said: This command requires a rectangular selection. Extend selection to the last line of the document? And, Columns++ Search neophyte that I am, I didn’t heed the suggestion. Had you heeded it, you would still have gotten a rectangular selection, as it says, extending downward from your selection — not necessarily enclosing the whole document, and in any case not the same as selecting the whole document (or selecting nothing at all) first. I should re-word that message, I’m just not sure what to say instead. It’s not actually true (since version 0.8) that a rectangular selection is required; as I mentioned before, the rules are complicated. They won’t easily fit into a message box. It makes sense when you’re using Columns++ for working with columns, but the search kind of took on a life of its own, apart from column work… hence, among other reasons, Search++. I’ve redone the experiment with all the my example text selected, and all instances of ' were successfully replaced with ’, without any anomalies. Thank you for that information. I do appreciate the help you’ve given me with this. While it doesn’t prove anything (almost nothing is ever proven when dealing with an intermittent bug), it suggests pretty strongly that something I changed in moving the Columns++ search process to Search++ has introduced a hidden instability. I’m still looking for it.
  • Compare Plus (and Compare) plugins hanging

    General Discussion
    3
    0 Votes
    3 Posts
    130 Views
    F
    @PeterJones said: You also mentioned “uninstalling the plugins and reinstalling them” – that sounds like you have both plugins installed at the same time. I highly doubt that it’s a good idea to have both Compare and ComparePlus installed on the same instance. Sorry, I only have Compare Plus installed now - so I tried uninstalling and re-installing it to see if it was fixed. Both are not installed. As far as I can tell, neither Compare nor ComparePlus has a “cancel” action. They have a “Clear Active Compare” action. Are you saying that you hit that “Clear Active Compare” button while it’s still working on making the comparison, to stop it in the middle? Or do you just mean that you are clearing the comparison once it’s done? I am hitting this cancel button to stop it in the middle of working; [image: 1786224004669-97162e74-5601-4918-b18e-1dfa20830fa5-image.jpeg] But with normal usage (telling it to compare, looking at the results, clearing the active compare), I have never gotten to the point that the plugin just hangs indefinitely. If you have a pair of files (with no private information) that you can get to cause the hang reliably, and can explain, in detail, the procedure that you use to cause the freeze, then I would recommend that you create an issue at the plugin’s GitHub repo so that you can let @pnedev know about the problem. I will do this - although I suspect it will not reproduce since these same files worked at first for me too. Thank you…
  • 1 Votes
    3 Posts
    119 Views
    G
    @PeterJones Okay, yes, there are several subdir in that folder that are links (issue #18248). Actually, the first subdir is a plain one and is displayed whereas the second one is a link and is not displayed while preventing the display of the remaining data. I’ll give the RC a try. Thanks again.
  • 0 Votes
    4 Posts
    215 Views
    mpheathM
    @Coises said: Notepad++ won’t let the selection that results from a search split a CRLF line ending. As you can see, it moves the start of the selection from the actual location of the match to after the line ending. I noticed that in a Lua script recently that the Scintilla positionAfter function treats CRLF as a single UTF-8 character. So the CRLF has become what some may call an unbreakable sequence in some situations.
  • Search++: A work in progress

    Notepad++ & Plugin Development
    125
    6 Votes
    125 Posts
    39k Views
    CoisesC
    @M-Andre-Z-Eckenrode said: @Coises As you I recently reported an issue with Search++ in a new, separate topic, but I see that several others have reported various issues in this one (presumably, because it’s still a work in progress). I have a new issue to report, and thought maybe I should ask if you prefer that new issues get reported in their own topic (which is generally my default), or for users to just include them in this one. Do you care one way or the other? Either way is OK with me. I suspect the moderators might prefer to keep discussion confined to this topic, though.
  • 0 Votes
    5 Posts
    541 Views
    PeterJonesP
    @annettekusma said: I also need to be able to move around paragraphs easily during the writing process # header paragraph before paragraph with no enter newlines, but just use line wrap. this allows you to use Ctrl+Shift+Up/DownArrow to move it up or down paragraph after [image: 1785854639307-moveparagraph.gif] I might want to have a couple of textfiles for the larger documentparts though, but I would want to drag a pragraph from one document to another. You would have to have both files open in Notepad++ tabs, and drag the text across between views (or use cut from one tab and paste into the other) automatically created table of contents, That is a word processor / desktop publishing software feature, not a feature of a text editor. Notepad++ can show the list of “functions” in the Function List panel, and for Markdown, I have headers defined as functions ⇒ here is the simplistic functionList definition I use for Markdown. If you put it in %AppData%\Notepad++\functionList as udl_markdown.xml, and then add <association id="udl_markdown.xml" userDefinedLangName="Markdown (preinstalled)"/> in your overrideMap.xml file in the same directory (if you don’t already have one there, copy c:\Program Files\Notepad++\functionList\override_map.xml into the AppData locaton) . But that is only visible inside Notepad++ itself, is not inherent to the file, and is dependent on having the functionList definition mapped in the overrideMap. You can come close to what you want in Notepad++, but it will never have all the features you have requested, because Notepad++ is a text editor, not a desktop publisher, and to expect a text editor to behave like a desktop publisher is to invite disappointment.
  • 2 Votes
    1 Posts
    317 Views
    No one has replied
  • 0 Votes
    4 Posts
    307 Views
    PeterJonesP
    @ILoveSkilledCoders said: Unfortunately I don’t understand some of what you said. I am sorry. I thought that explaining to go someplace in Windows explorer and rename files would be easy enough to understand. I cannot make it easier to understand than that. I’m trying to find someone to help explain it to me. & I don’t know what you didn’t understand, so I cannot explain more. to edit those files b/c I don’t want to screw things up & make it worse. I didn’t say to edit any files. I said to rename/copy files. I have no idea if I was in admin mode when I updated. That’s unfortunate. … someone told me you came out with the numbers that tell us how many search results there are, … & then which number result we are on after we press “enter.” I need that so I got excited & updated. Unfortunately it’s not in the Ctrl F search window as I found out. That’s with Search > Inremental Search which brings up the Incremental Search Bar at the bottom of the screen. That’s a simplified version of the search which has always been there, but recently the “live count” was added to the Incremental Search I think I learned years ago that you have to click on Ctrl S at least once to save each file, Each time you hit Ctrl+S on a file, it saves it. That’s the only time that Notepad++ saves it to the given directory. If you only hit Ctrl+S on each file once, then it only saved it once in that directory. The “session snapshot and periodic backup” feature of Notepad++ does not save the file to the normal location. It saves it to the backup directory which I referenced before. In the future: If you want to automatically save your updated/edited files without hitting Ctrl+S or File > Save or the Save or Save All button on the toolbar, you would need to install and configure the AutoSave plugin, as described in the FAQ I linked you to. If you don’t want to install and configure that plugin, then you will have to learn to Save your files on your own. but I had them all saved at one point, otherwise they wouldn’t have been in that Notepad++ folder, so I have no idea what happened. You saved them once, and only once. Never again. That’s what happened. On another note, off & on since the update, I keep getting this error, & then there’s another question after this one which I forgot to take a SS of. https://nimb.ws/i9V1zXa Just paste the image into your post: you don’t need to upload it to a service. [image: 1785784094594-115d78d2-de07-43ff-a056-e06450858f4d-image.jpeg] That means some other program had updated Links.txt since the time you opened it in Notepad++. Your choices are to say “YES”, which will read the copy from disk, and get rid of all your edits, or to say “NO” and overwrite whatever is on disk with what’s currently visible in Notepad++. Which choice is right depends on your computer, and we cannot tell you which is right for you to choose. Also, when I click on Ctrl. F, most of the time it doesn’t highlight & place my cursor in the text field so I can type a new keyword. I had no problems with the other one. That’s controlled on Settings > Preferences > Searching, with the Fill Find Field with Selected Text checkbox and the Max Characters to Auto-Fill... number field. Going back to your original problem: you have probably opened and closed Notepad++ too many times for my file-rename procedure to be of any help. So ignore that part for now. Instead, you will need to open your Windows Explorer (WinKey + E – I believe that worked even back in Win7 days), and then paste %AppData%\Notepad++\backup into the Location Bar of the Explorer window. If your Win7 doesn’t show the explorer bar, then you will have to manually go to C:\users\<user name>\AppData\Roaming\Notepad++\backup\ in Windows Explorer. In that directory, there may or may not be a bunch of files with names similar to filename.ext@yyyy-mm-dd_hhmmss, where filename.ext is the name of the real file, and the yyyy-mm-dd_hhmmss is a timestamp that Notepad++ used. If you have a bunch of those, you can copy those to some safe, temporary directory, and then open all those copies in Notepad++. Look through them, If any of them have the data you want for your real files, then save them to the correct filename in D:\Notes\Notepad++. Close any of them you don’t want. Leave the ones open that you saved to D:\Notes\Notepad++. In the future, either use Ctrl+S (or the menu or toolbar equivalent) to save the file when you’ve made an important change, or set up the AutoSave plugin to save your files for you. If you have difficulty setting up AutoSave after reading the FAQ, please let us know which step of the FAQ you are on and having difficulty with. But I’m not going to type step-by-step instructions for you here, because those instructions are already in the FAQ, and it would be a waste of everyone’s time for it to be typed again here.
  • Notepad++ release 8.9.7

    Pinned Announcements
    7
    2 Votes
    7 Posts
    7k Views
    donhoD
    Auto-updater is triggered for v8.9.7.
  • FAQ: Periodic Backup vs AutoSave Plugin

    FAQ backup autosave unsaved faq
    3
    1
    3 Votes
    3 Posts
    28k Views
    PeterJonesP
    Corrupted Session Starting in Notepad++ v8.6.5, it will store session.xml.inCaseOfCorruption.bak next to session.xml, and will automatically use that if session.xml is corrupted. However, if you ever find that you open Notepad++ (especially after an update or a system crash) and find that the files opened weren’t in the same state as when you let them, you can try this procedure: Exit Notepad++ Windows Explorer, go to %AppData%\Notepad++ (or in your appropriate config-file location if you aren’t using AppData for config) Rename session.xml to session.xml--keep Copy session.xml.inCaseOfCorruption.bak to session.xml Run Notepad++ → If it’s now showing the right copy of your files, great! If not, exit Notepad++, delete session.xml, and rename session.xml--keep back to session.xml .
  • 0 Votes
    3 Posts
    158 Views
    G
    @PeterJones ok man Thank you, the method worked.
  • Cannot Update Plugins

    General Discussion
    1
    0 Votes
    1 Posts
    150 Views
    No one has replied
  • 1 Votes
    9 Posts
    3k Views
    rafaelloR
    1.2.2 Syntax highlighting PowerShell Improved absolute, relative, quoted and unquoted paths colors [image: 1785402977913-paths.png] Improved variables interpolation colors [image: 1785402952228-interpolation.png] [image: 1785402954396-interpolation4.png] Added colors for expressions $(..), ${..} Added registry hives colors (HKLM, HKEY_LOCAL_MACHINE, …) Fixed syntax highlighting Fixed variables colors inside paths and quotes Fixed excessive colors of variables, keywords, and functions enclosed in quotes Fixed unexpected sc.. and vk.. colors in AutoHotkey code Disabled colors for variables inside single quotes ' ' (because single quotes prevents var. interpolation)
  • Alt key interferes with work

    Help wanted · · · – – – · · ·
    13
    0 Votes
    13 Posts
    3k Views
    P
    I found a plugin that solves this problem. https://github.com/numbereleven-a/NotepadPP_AltShiftMenuFix
  • 0 Votes
    2 Posts
    183 Views
    PeterJonesP
    @BlackX777 , That was brought to the developer’s attention in the repo issues last week. Unfortunately, take-down requests can take time.
  • 0 Votes
    4 Posts
    2k Views
    M
    @PeterJones said: @Kiichiro-Matsushita, welcome to the Notepad++ Community. You said: I tried tinkering with the Style Configurator, to no avail… You don’t tell us which theme you are starting with. You don’t tell us what you tried in the Style Configurator. One would think if you really wanted help, you would give us more to work with. That said, I will give the following advice: How do I change those? Using Style Configurator, after you’ve set your theme, you can choose the Global Styles in the first column, and choose the Current Line Background settings (second column) to change the “you are on this line” highlight; for “you have selected this text”, you need to edit the Selected Text Color (again, second column). Please note for these two settings, Style Configurator only pays attention to Background Color – the foreground color and bold/italic/underline settings are ignored. … Good luck. I had the same issue, this answer worked! Appreciate your time & input
  • 0 Votes
    11 Posts
    959 Views
    PeterJonesP
    I already made my debug info available in my first post in this topic, which clearly indicated that I’m using an installed x86 version of NPP. I am sorry I didn’t remember that from a week ago. And “multiple instances” can have different meanings to different people. Even if I had remembered you were using installed, that doesn’t mean that you weren’t also using a portable: not everyone would think to mention such a thing – they might not even think about it, when using their multiple installations/portables next to each other. (I have my daily as Installed, but I also have multiple active portables that use different configurations). I just needed to make sure, because different setups could have vastly different reasons for the symptoms you describe. I normally run NPP the first time after a restart via either its shortcut in my taskbar or the start menu. Any second instance is normally opened with command line options -multiInst -nosession (via AutoHotkey keyboard shortcut), and I always exit it before exiting the primary instance. In theory then, the validate from the main instance should get saved. After you validated, did you exit before running again and spawning multiple instances? Because Notepad++ doesn’t save the new copy of the config file (with the new validation HMAC code) until it exits. So if you ran the main, ran validate, then spawned new instances, the HMAC code might not have propagated to the new instances I don’t know whether N++ gives a copy of the current config structure from memory to the new process, or whether the new process is completely separate, in which case, it would have read the old version from the disk again – re-reading, since you are doing notepad++.exe -multiInst -nosession via AHK (ie, outside N++, instead of using the “Clone to New Instance” command from inside Notepad++), it would have no way of propagating that HMAC to the new instance, because it hasn’t written it to the config.xml yet, so when the new instance reads config.xml, it is out-of-date. A few hours ago, just before I posted my last reply, I was consistently able to replicate NPP’s demand that I re-validate when trying to run my macro. Now, I can’t. No idea why. I am wondering if you finally had a sequence where you did the validate, then exited so it saved the right HMAC, and now everything is settled. I hope so (and believe so). Stay tuned. If it comes back, I’ll be sure to make a note of the exact sequence and post again. Based on my experiments (below), which are 100% repeatable for me, now that the HMAC has been properly saved, it shouldn’t prompt you again until you manually edit the shortcuts file. My Steps to Confirm: create example.pyfrom Npp import notepad notepad.runMenuCommand("Macro", "Trim Trailing Space and Save") exit all Notepad++ use notepad.exe to edit config.xml and remove the line with name=“shortcutsXmlHMAC” (which causes it to be not-yet-validated), and save launch main copy of Notepad++ Run > validate shortcuts.xml open a new instance of N++ with -multiInst -nosession Plugins > PythonScript > scripts > example → it will pop up the shortcuts.xml file and the validation warning messagebox please note: this doesn’t require you to use the keyboard shortcut; just that you run a scrpt that tries to run a macro or run-menu command, as far as I can tell – my experiments have not been using an assigned keystroke to run the script. exit the second instance exit the first instance (which should save the config.xml with validated HMAC) launch main copy of Notepad++ open a new instance of N++ with -multiInst -nosession Plugins > PythonScript > scripts > example → it will not pop up the shortcuts.xml file or the validation warning messagebox, because it’s valid So, I guess the clarified version: if you are using multiple instances, close all intstances but one, look at shortcuts.xml to make sure all the macros and run-menu commands are as you expect them to be, then Run > validate shortcuts.xml, then exit Notepad++ to get it to save that. From now on, you shouldn’t need to validate again unless you intentionally manually edit shortcuts.xml. (Using Shortcut Mapper or saving new macros or run menu commands should not trigger a re-validate, because Notepad++ should update the HMAC when it changes the shortcuts.xml itself) update: PR 889 is adding a NOTE to that effect in the shortcuts.xml security section – you may have to refresh your browser to see it.