Community
    • Login
    1. Home
    2. Popular
    Log in to post
    • All Time
    • Day
    • Week
    • Month
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics

    • All categories
    • M Andre Z EckenrodeM

      Search++ (\W)'(\w) regex replace failure

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      49
      0 Votes
      49 Posts
      4k Views
      M Andre Z EckenrodeM
      @Coises said: I expect that Version 0.6.5 will fix this. Noted, thanks again, and I’ll let him know — although he actually doesn’t typically use regex for his own purposes.
    • PeterJonesP

      [BETA] Upcoming Plugin: HiddenLexers

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      15
      1
      2 Votes
      15 Posts
      988 Views
      PeterJonesP
      Since it’s essentially working at this point, I’ve renamed the Topic to “BETA” @mpheath , I have updated the README at https://github.com/pryrt/NppPlugin-HiddenLexers to enumerate available options I think I’ll be patient, and give the beta test a while longer, so won’t try to rush to release it before N++ v8.9.8’s PluginsAdmin list is finalized.
    • S

      Multi line tab bar but with maximum X lines ?

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      13
      1
      0 Votes
      13 Posts
      665 Views
      PeterJonesP
      I simply don’t have the mental space to go through all these documents and give them names and save them and do all the things. I will get there eventually. Then you will likely lose data. But I also observe that my friends are in the same boat, whenever we need scratch space to write something down, we double click on an empty place on the tab bar, a new tab appears, then data is written and pasted and so on… And then click Ctrl+S and save to a meaningful location, while it’s still fresh in your mind. It’s really easy to add that to your mental workflow. I have many old notepad++\backup folder strewn all over the place Crazy. Those are temporary backup folders, and if you’re keeping them as long-term storage, you are asking to lose data. It is a huge burden to handle and search these. When I need to search my stuff I use Voidtools Everything Why not first, copy all except the active (2026-08-19) backup directory, copy them to a known folder in one location – if you need to, make it a hierarchy, like c:\some\path\old-npp-unsaved\, and then have 2022-08 and 2022-12 and 2026-03 and 2024-01 as subdirectories, if you want/need to keep them separate; or, since every file has the datestamp in it already, just put all the contents of each of those in the same c:\some\path\old-npp-unsaved\ … Then, when you need to search your old backup archives, they are in one easy location. And you can just use Notepad++'s built-in Search > Find in Files, with Directory = c:\some\path\old-npp-unsaved\ and ☑ In all subfolders, then just enter your search term in the FIND WHAT box. But getting back at the current matter, I would like to see more of my tabs, on more than one row but not see all of them at once, which blots out all the reader space. So put in a feature request, as described in our feature request FAQ. I was just warning that it might be harder than you think, or there might not be anyone wanting to do it. But since @thomas-knoefel seems to have an idea for an implementation, then there’s likely to be a PR sometime soonish after you put in the feature request, and then it can quickly get reviewed by the developer. It might even make it into v8.9.9 (it’s too late for v8.9.8, since that’s in Release Candidate), but that means it might actually make it soon. https://superuser.com/questions/153109/is-there-a-way-to-manage-tabs-efficiently-in-notepad [image: 1787241672999-4cb4cf53-2459-4854-bdea-040b96b9ef5d-image.jpeg] I tried finding this in my installation but could not figure it out. Seems that it is buried somewhere in the menus, which would make making a habit of using it difficult. The SU answer was originally from 2010 2013, and then edited in 2015, so the description is confusing, especially in 2026. The Session Manager that they mentioned is not “built in”, it is a plugin. Notepad++ has simplistic native sessions, but nothing to the capability of the Session Manager that they were talking about. To install it, the “Plugin Manager” that was described in 2015 hasn’t been compatible with Notepad++ since v7.6 in 2019. Looking at questions and answers from a decade ago aren’t necessarily going to work in modern Notepad++. Instead, that old plugin manager tool was replaced with the builtin Plugins Admin instead in 2019. And the Session Manager plugin that the ancient SU answer referenced does still exist: you can install it using Plugins > Plugins Admin One thing I really which is to also have the ability to have multiple notepad++ window, like multiple firefox windows. That feature has existed for more than a decade (as I said here, just yesterday – why are people just now discovering the multi-instance capabilities, when it’s essentially always been a part of Notepad++). As was said in yesterday’s conversation, you can drag a tab out into empty space, and it will create a new instance; or, not mentioned yesterday, you can use the right-click context menu on a tab then Move Document, or equivalently use View > Move/Clone Current Document…, to then pick Move to New Instance, and it will open a new Notepad++ window. Or at least have floating notepad++ window with just one tab. This would make my life easier organizationally ! Saving files would make your life easier. The thing I find is that if I have something to write, and it’s urgent, I can’t give it a title, a filename or save it, I have a hard time explaining why those extremely easy things are so hard for me, but I simply cannot. You can, actually. It might take a little retraining, but even an old dog can learn new tricks. The ability to “just write” is probably one of the thing I love the most about notepad++ and I wish it were even easier to “sprawl” even more but that it would help me with staying organized without me having to start organizing it. Hopefully, your AI will be able to help you… though I am doubtful of it. Still, I highly recommend setting up true backup, version control, and a saving system going forward, otherwise you will lose data, and there’s nothing that Notepad++ can do to save you from your current risky behavior. Good luck.
    • Neculai I. FantanaruN

      REGEX: Change the name in reverse order

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      11
      0 Votes
      11 Posts
      497 Views
      Neculai I. FantanaruN
      @guy038 I can creat a Python script :) but the beauty and art was finding a solution just with regex.
    • Afik GilboaA

      nppftp and and windows 11

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      11
      0 Votes
      11 Posts
      802 Views
      xomxX
      @Afik-Gilboa said: both of them have the “run as administrator” unchecked. so any ideas why it keeps opening in admin mode? apparently everything running as administrator here, not sure why but it’s everything… I recognize the symptoms - you probably have turned off the Windows UAC completely somehow and at the same time the account, you are logged in, has the administrator rights (then everything launched will have the admin rights as default). Check your Registry for EnableLUA REG_DWORD 0x00000000 in: [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System] (click on Windows Start, start typing “Reg” there, click on the Registry Editor (System) app offered and navigate there to the hive path above) If there is that 0x00000000 (OFF), change it do 0x00000001 (ON) and restart your PC.
    • P

      When finding in files is it possible to show more than one line?

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      10
      0 Votes
      10 Posts
      563 Views
      PeterJonesP
      So if I search using (?=.*Error)(?=.*Foobar1)(?=.*Foobar2) With regular expression and newline checked. I do see it boil down to the files I am interested in. My only other need is to see all the lines associated/contained with the AND. … The first table in the FAQ is just showing the logic for matching all of those terms. Later down in the FAQ, there is another table which explains how to find the exact line that matches all of those terms. In your case, the AND would be (?-s)(?:(?=.*Error)(?=.*Foobar1)(?=.*Foobar2))^.*(?:\R|\z) [image: 1787010625218-59c19de8-1eb3-41e3-9fd1-14abdcb43053-image.jpeg] or, using the Find Results via Find All in Current Document: [image: 1787010757984-6f1d47c5-0787-4257-91c0-22189e1d79fc-image.jpeg] dummy example file to show it working: Blah Error Blah Foobar1 blah Foobar2 Blah Warning blah Football1 blah Football2 Blah Foobar2 blah Foobar1 blah Error order doesn't matter Blah Error blah Foobar1 blah Footbark2 won't match because it doesn't have all three
    • donhoD

      Notepad++ release 8.9.8

      Watching Ignoring Scheduled Pinned Locked Moved Announcements
      9
      5 Votes
      9 Posts
      2k Views
      Ivan BútoraI
      @PeterJones Thanks for the tips. None of the .exe files had the blocks. I ran the update manually and how finally the Plugins Admin option has shown up. I was wondering whether there was some change in nppPluginList.dll that might have been incompatible with my OS (Windows 7). But it seems everything is OK for now.
    • J

      Notepad++.exe blocked from Right-click edit - txt, m3u etc.

      Watching Ignoring Scheduled Pinned Locked Moved Security
      9
      1 Votes
      9 Posts
      555 Views
      PeterJonesP
      @J-Mark-Barfield , that was not a “regedit”, that was a normal command-line command all those two commands did was run an instance of notepad++.exe without RunAsAdmin privileges, even before you made the change to the executable compatibility settings it was completely unnecessary all you had to do was exit Notepad++ application completely (so it wasn’t running), then do the steps I explained to get notepad++.exe to not run as admin, and then the next time you ran Notepad++ (either using your shortcut or double clicking on the exe or running the exe from the command line normally or double clicking on a text file or right clicking and choosing Edit with Notepad++) would have run Notepad++ not as admin if you didn’t exit Notepad++ first, then the still running Notepad++ instance would still be running as Admin. Changing the exe properties while the exe is running doesn’t magically drop the running Notepad++ out of Admin mode. And thus your right click would not have worked, because the running Notepad++ was still in Admin mode. all you did by doing those extra commands was close the Notepad++ that was running as admin open a new instance that wasn’t running as admin change the exe properties so that it wouldn’t run as admin next time (I understand that you got it working, so you don’t really care at this point. But I don’t want future people to read this discussion, and come to the wrong conclusion that they need to do your extra steps. Those steps were completely unnecessary.)
    • CoisesC

      Search++: A work in progress

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      130
      6 Votes
      130 Posts
      43k Views
      guy038G
      Hello, @coises and All, @coises, I recommend that you read this GithHub thread about the multiReplace plugin, specifically my following two replies : https://github.com/daddel80/notepadpp-multireplace/issues/133#issuecomment-5478750061 https://github.com/daddel80/notepadpp-multireplace/issues/133#issuecomment-5492407859 In the first post, I asked @thomas-knoefel if the Find in Files search could scan the N++ buffers rather that their equivalents on disk ! You can verify that, in the table, at that time, the Search++ and Multiplace plugins, unlike N++, did a Find in Files search on the saved files on disk and not on the N++ buffers possibly modified And, in the second post, I verified that the attached new build, provided by @thomas-knoefel, do scan the N++ buffers, by default ! Could you implement such behavior and add an option to search on N++ buffers, by default OR on saved files on disk, like within N++ v8.9.8 and MultiReplace ? TIA for your time and work on this topic ! Best Regards, guy038
    • Neculai I. FantanaruN

      Add Increment Number (part 2)

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      7
      0 Votes
      7 Posts
      142 Views
      CoisesC
      @PeterJones said: PeterJones said: I assume the Search++ syntax would be the same Per the Search++ announcement, it can do the numeric calculations that were first developed for Columns++. I should update the FAQ soon… I recommend waiting on that update. Search++ is not “production ready” yet. People shouldn’t be using it at present unless they want to be beta testers. Once I reach a 1.0 release I’ll make a serious effort to avoid changing things that people would expect to stay the same, but right now, anything could be changed at any time. Numeric expressions in Search++ do not have quite all the features of numeric expressions in Columns++; in particular, the history options (using the values captured or computed in a previous match) aren’t supported in Search++, and the exprtk return statement isn’t supported. However, I think all the features directly cited in the Math FAQ are included. The reg(1) syntax still works, but in Search++ you can use $1 as well. However, a quirk is that since Search++ doesn’t have the persistent Decimal separator is comma option of Columns++, it’s necessary to use regc(1) or $$1 for European-style numbers with periods and/or commas. Finally, Columns++ can only work on the active document. Search++ has a Find in Files option, but Replace in Files has not yet been implemented. So if your guess was correct and @neculai-i.-fantanaru wants a regular expression because it must be applied to many files at once, @thomas-knoefel’s MultiReplace is the best choice among presently-existing options. Oh, and MultiReplace has recently added an option to use exprtk formulas as an alternative to its Lua syntax.
    • donhoD

      Notepad++ release 8.9.7

      Watching Ignoring Scheduled Pinned Locked Moved Announcements
      13
      2 Votes
      13 Posts
      9k Views
      PeterJonesP
      @Ian-Eales , That sounds more like a feature request than something that used to work but broke during 8.9.7 – so it’s not a regression. The FAQ here explains where requests for new features need to go …
    • J

      UDL: set multicharacters delimitators/keywords that also accept escaping characters to neglet

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · · udl udl folding
      5
      0 Votes
      5 Posts
      216 Views
      PeterJonesP
      @Jacopo-Remondina , I am still not sure what you want for FOLDING and what you want for KEYWORD and what you want for DELIMITER and what you don’t want detected at all. But at this point, I’m guessing that what you want is too complicated for the simplistic keyword/token matching used for UDL. For FOLDING, it’s designed to either match spaces-not-needed so the open/mid/closing all don’t require spaces, or to match spaces-required so the open/mid/closing all do require spaces; it is not meant to mix, so that the open doesn’t require spaces but the close does. The easiest workaround is what you already know: enumerate them all. I don’t think you’re going to find a better solution.
    • cosmic-hyenaC

      adverts on download page?

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      5
      0 Votes
      5 Posts
      276 Views
      cosmic-hyenaC
      @PeterJones thanks mate.
    • K

      Search & Replace syntax

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      4
      0 Votes
      4 Posts
      186 Views
      CoisesC
      @KRadiants said: 1: False on both counts. Here is an example line <attribute id="Selectors" type="LSString" value="SelectSkills(ed664663-93b9-4070-a54b-3c7b19c0e7b4,3);SelectSpells(61f79a30-2cac-4a7a-b5fe-50c89d307dd6,2,0,BardCantrip,,,AlwaysPrepared);SelectSpells(dcb45167-86bd-4297-9b9d-c295be51af5b,4,0,BardSpells);SelectEquipment(aab8c5b5-eacf-4867-8e5f-bd4de3a9132e,1,BardInstrument);SelectAbilityBonus(b9149c8e-52c8-46e5-9cb6-fc39301c05fe,AbilityBonus,2,1)"/> There is a blank before, and sometimes there is something before and/or after it Otherwise, this is correct. OK, so in this example you want to end up with: <attribute id="Selectors" type="LSString" value="SelectSkills(ed664663-93b9-4070-a54b-3c7b19c0e7b4,3);SelectSpells(61f79a30-2cac-4a7a-b5fe-50c89d307dd6,BardCantrip,,,AlwaysPrepared);SelectSpells(dcb45167-86bd-4297-9b9d-c295be51af5b,BardSpells);SelectEquipment(aab8c5b5-eacf-4867-8e5f-bd4de3a9132e,1,BardInstrument);SelectAbilityBonus(b9149c8e-52c8-46e5-9cb6-fc39301c05fe,AbilityBonus,2,1)"/> ? If that’s correct, try the same expression I suggested before, except remove the ^ from the front: Find what: (SelectSpells\([\d\-abcdef]+),\d+,\d+ Replace with: $1
    • A

      User defined language seems to support only one extension

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      4
      1
      0 Votes
      4 Posts
      278 Views
      PeterJonesP
      @André-Programmeren said: As far as I remember I stopped and re-started Notepad++ Notepad++ saved it’s current language for that file (plain text) in the session config, then used that saved session config when you restarted. (This is a critical feature when one extension can have multiple meanings, and you have overridden the default language for a particular file) OTOH, if you close the file, Notepad++ discards meta-information, like what language was previously served, and so re-applies its internal rules and will see the UDL extension when you re-open the file.
    • M

      How to multiline regex find + replace a block of code that varies across multiple files

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      4
      0 Votes
      4 Posts
      213 Views
      M
      @Coises Thankyou so much, I had two question marks near the end of the code block I was replacing with that I hadn’t escaped, so the code got cut off there. I’d blindly assumed NPP’s find and replace didn’t care about escaping because the code is full of all manner of forwardslashes, colons, and angle brackets and they posed no issue.
    • F

      Compare Plus (and Compare) plugins hanging

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      4
      0 Votes
      4 Posts
      474 Views
      P
      Hi @franz-joli , I haven’t come across such behavior myself and cancelling compare on my side has always been working flawlessly. As @peterjones had already kindly suggested, If you continue to experience such problem you could open an issue here and describe it step-by-step starting with your Notepad++ setup and plugin version (by providing the Notepad++ Debug Info... from its ? menu) and it would be great also if you could provide example files to try on my side. We can discuss the problem further there. Thank you Peter, precise and helpful as always! :)
    • M Andre Z EckenrodeM

      (\W)'(\w) Regex replace failure

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · · find repl reg
      4
      1
      0 Votes
      4 Posts
      420 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.
    • Morten SiljubergM

      Why do Notepad++ keep the "Move to recycle bin" delete prompt?

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      3
      0 Votes
      3 Posts
      154 Views
      MarkusBodenseeM
      Microsoft didn’t remove the prompt, but made it configurable, so you can decide if you want to keep it or not. Configuration can be found for example with right click --> properties on the recycle bin icon.
    • donhoD

      Fake Notepad++ website

      Watching Ignoring Scheduled Pinned Locked Moved Security
      3
      2 Votes
      3 Posts
      257 Views
      Lycan ThropeL
      @donho Reported to both sites per your request to help keep the community safe.