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
    • Ricardo BarrosoR

      Search & Replace help "Swap numbers in middle of code"

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      10
      0 Votes
      10 Posts
      361 Views
      guy038G

      ello, @ricardo-barroso, @peterjones, @terry-r and All,

      An other S/R could be :

      FIND (?-i)RequiredItem.+, \K\d+

      REPLACE 0

      The search regex means :

      First, find a string RequiredItem, with that exact case because of the leading part (?-i)

      Then find any NON-zero number of chars ( .+ ) till a comma followed with a space char

      Now, forget anything matched so far, due to the \K syntax

      And just match a non-zero list of digits ( \d+ ), which come next

      Finally, replace that number by 0

      Remark : You must do a global S/R, using the Replace All button. Due to the \K syntax a step by step replacement, with the Replace button, would not work !

      Best Regards,

      guy038

    • CoisesC

      Search++: A work in progress

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      90
      5 Votes
      90 Posts
      7k Views
      guy038G

      Hi, @coises,

      I re-tested the supposed bug and I simplified the procedure which is necessary to trigger that bug !

      If opened, close the Search++ plugin by clicking on the cross, at the far right

      A Re-open Search++ with the Plugins > Search++ > Search... option

      B Try to close the Search++ panel by clicking on the cross, at the far right => Nothing happens !?

      C After some trys, if you move slightly the mouse, you should be able to close the Search++ panel

      Sometimes, you’ll need to repeat the actions A ato C, up to 5 times consecutively, to trigger that bug. but this event may also occur at the first try !

      I also noted that, when the bug occurs, any subsequent left click on the cross does nothing until I move very slightly the mouse, without any clicking, that is enough, then, to close the search++ panel by clicking againg onto the cross icon. Very strange, indeed !?

      As I suspected that the problem could be an hardware issue with my bluethooth mouse, I disabled it and installed a classical USB mouse, instead. But, unfortunately, results were identical as well as the uncertainty regarding the manifestation of the bug !

      I have different portable versions of Notepad++, but the one which is concerned is the v8.9 release where I installed, both, your Columns++ and Search++ plugins

      Here is my Debug info :

      Notepad++ v8.9 (64-bit) Build time: Jan 10 2026 - 02:25:19 Scintilla/Lexilla included: 5.5.8/5.4.6 Boost Regex included: 1_90 pugixml included: 1.15 nlohmann JSON included: 3.12.0 Path: D:\890_x64\Notepad++.exe Command Line: Admin mode: OFF Local Conf mode: ON Cloud Config: OFF Periodic Backup: OFF Placeholders: OFF Scintilla Rendering Mode: SC_TECHNOLOGY_DIRECTWRITE (1) Multi-instance Mode: monoInst asNotepad: OFF File Status Auto-Detection: cdEnabledNew (for current file/tab only) Dark Mode: OFF Display Info: primary monitor: 1920x1080, scaling 125% visible monitors count: 1 installed Display Class adapters: 0001: Description - Intel(R) Iris(R) Xe Graphics 0001: DriverVersion - 32.0.101.7084 OS Name: Windows 11 Pro (64-bit) OS Version: 25H2 OS Build: 26200.7462 Current ANSI codepage: 1252 Plugins: mimeTools (3.1) NppConverter (4.7) NppExport (0.4) ComparePlus (2.2) ColumnsPlusPlus (1.3.1) NppUISpy (1.2) MultiReplace (4.6.0.33) Marginalize (1) Search++ (0.5.5)

      Finally, note that this portable version of N++ is installed on an USB drive

      Best Regards,

      guy038

    • S

      autoupdater and XMLDSig

      Watching Ignoring Scheduled Pinned Locked Moved Security
      6
      0 Votes
      6 Posts
      279 Views
      S

      I will check out donho’s other project xmlSigner as suggested by @xomx and will update this thread with the results.

    • U

      Very small problem

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      5
      0 Votes
      5 Posts
      42 Views
      U

      @Uwo222777
      Of course, the program itself should return the encoding to its original form, but… it doesn’t do this.

    • donhoD

      Notepad++ release 8.9.4

      Watching Ignoring Scheduled Pinned Locked Moved Announcements
      5
      3 Votes
      5 Posts
      1k Views
      xomxX

      @donho said in Notepad++ release 8.9.4:

      Add NPP_LANG property to install a specific localization file for MSI. (Fix issue reported in comment )

      As is correctly noted in this GitHub comment, the lang info should be stored into Registry HKLM and not into HKCU.

    • guy038G

      Enhancement of the COLUMN EDITOR feature

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      5
      0 Votes
      5 Posts
      153 Views
      guy038G

      Hi, @alan-kilborn and All,

      Of course, I could use your method to achieve my goal but that is just the reason why I wanted this enhancement which should avoid any further operation !!

      BTW, this idea occured to me while I was writing this other post :

      https://community.notepad-plus-plus.org/topic/27511/surprising-regular-expression

      In the meanwhile, I’ve found out a nice work-around to realize that goal ! Let’s imagine that you want to do a list of 743 empty lines exactly ( I chose that number as it’s a prime number ). Then :

      Open a new tab Within N++

      Hit the Enter key just once

      Open the Replace dialog ( Ctrl + H )

      Uncheck all box options

      Check the Wrap around option ONLY

      Select the Regular expression search mode

      FIND \R

      REPLACE $0$0

      Click 10 times on the Replace All button

      => You should get a total of 1,025 lines ( Note that, after each replacement N, the number of lines increases to the value 2 × N + 1 )

      The trick is to repeat the process up to the first number which is greater than 743 !

      Now, open the Search > Go to... option ( Ctrl + G )

      Search for the line 744 ( so 743 + 1 )

      Then, select to the very end of file with the Ctrl + Shift + End shortcut

      And finally, hit the Delete key

      => It should remain the expected 743 lines !

      I readily admit that all the different tasks of my work-around do not take long. However, I still think that a new field Total insertion number, in the Column Editor dialog, filled with the value 743, would have been more elegant and straightforward !

      Best Regards,

      guy038

    • O

      Cannot open text files in Adminitrative mode from network shares in Win11

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      7
      0 Votes
      7 Posts
      296 Views
      xomxX

      @Olyfant22

      There really are substantial differences in between the Win10 & Win11 in this area. I know about 2: SMB signing enforcement in 24H2+ and stricter token isolation (the later one should be solvable by that mentioned “EnableLinkedConnections”)

    • M

      Notepad++ 8.9.4 (x86)EXE Upgrade Leaves Duplicate ARP Entry

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      2
      0 Votes
      2 Posts
      112 Views
      xomxX

      @metaad

      GitHub issue #17979

    • Rex TheodoreR

      Any NPP plugins available to format programming languages such as TCL and C++

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      2
      0 Votes
      2 Posts
      107 Views
      EkopalypseE

      @Rex-Theodore
      You can always use the Run menu to call up the formatters with the current buffer.
      However, since you mentioned that you use Python, you can use the PythonScript plugin and
      trigger an action whenever you receive a NOTIFICATION.FILESAVED.
      If you want more features, you might want to check out Kereds or my LSP client for Notepad++.
      However, this means that the languages you use must have an LSP server.

    • 周学习周

      傻逼软件,傻逼作者,傻逼呆湾人

      Watching Ignoring Scheduled Pinned Locked Moved Boycott Notepad++
      6
      -1 Votes
      6 Posts
      1k Views
      Lycan ThropeL

      @Fii-Ert said in 傻逼软件,傻逼作者,傻逼呆湾人:

      美国干涉台湾,又怎么说?
      台湾的绿圾执政党,自甘堕落化为纳粹,由不得别人不干涉!

      347
      你这种逻辑,正是共产主义灌输教育的典型特征——试图将共产主义的侵略行径粉饰为某种“好事”,而事实绝非如此。这本质上不过是一种混淆视听的企图。你将美国的援助视为“干涉”,这纯粹是你基于自身偏见所构建的一种妄想式解读,而非客观现实。中国必须远离台湾,这一点毫无商量余地。

    • donhoD

      Notepad++ v8.9.4 Release Candidate

      Watching Ignoring Scheduled Pinned Locked Moved Announcements
      3
      4 Votes
      3 Posts
      2k Views
      schnurlosS

      @donho, thanks for your work.

      Just a small text issue in change.log:
      201ed2b9-32b0-4e6b-87e8-053029c2feca-grafik.png
      versus
      cbe0c0b0-b7d2-4cf4-8aef-4fbb24ae565c-grafik.png

    • H

      The Column count of Zenkaku chr. is 1?

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      2
      0 Votes
      2 Posts
      99 Views
      CoisesC

      @Hiroki-H1974 said in The Column count of Zenkaku chr. is 1?:

      So, the position is not the same even if Col: count is same because the line contains some Zenkaku chrs.

      I don’t know Japanese; please forgive me if I’ve missed the point in some way.

      The column (“col:”) in the status bar is just a count of characters from the beginning of the line, starting at one. (That’s not even always what you might expect; combining characters that form a single visible character are still counted separately.)

      Aside from a few things like cursor positioning, line wrapping and selection with the mouse, Notepad++ (like the Scintilla control it uses for editing) doesn’t concern itself with the physical space occupied by characters. In English, we can use a proportional font, and a line of twelve characters will show the next “column” as 13, whether they are IIIIIIIIIIII or WWWWWWWWWWWW.

      So (though I haven’t attempted to test it), regardless of font, I would expect that there would be no recognition of the difference between half-width and full-width characters.

    • pbarneyP

      Virtual Key Codes Update

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      4
      1 Votes
      4 Posts
      219 Views
      pbarneyP

      @PeterJones Thanks for the quick update to the manual! Maintaining technical documentation across versions is a major undertaking when there’s an integrated development team within major corporations; I can’t imagine how herculean that job must be when you’re not side-by-side with a lone developer, so thank you for the excellent work on it. I really do appreciate your speedy response and update.

      I tried to post the second part of my list yesterday, but I was delayed by the “time between posts” counter, and unfortunately had to leave before it reset.

      However, you might want to double check your list against the FAQ, to let us know if the FAQ is missing any.

      I’ll go ahead and do that. Thanks again!

    • L

      Find dialog position

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · · find dialog
      3
      0 Votes
      3 Posts
      141 Views
      Alan KilbornA

      @Lars-Hesselberg said:

      the Find dialog seems to pop up where it left at last Find.

      This seems very reasonable to me.

      …sometimes a “Seek & find”!

      Shouldn’t be…it’s where you “left (it) at last Find”.

      Summary: Put it where you want it to appear always, and it will always appear in that same spot.

    • B

      8.9.4 installation shows error for AppX call

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      1
      0 Votes
      1 Posts
      25 Views
      No one has replied
    • guy038G

      Surprising regular expression !

      Watching Ignoring Scheduled Pinned Locked Moved Blogs
      1
      0 Votes
      1 Posts
      75 Views
      No one has replied
    • donhoD

      All the off-topic go here

      Watching Ignoring Scheduled Pinned Locked Moved Boycott Notepad++
      9
      3 Votes
      9 Posts
      7k Views
      guy038G

      Hello, @peterjones and All,

      Peter, in one of your posts, that I cannot seem to find, you mentioned a new feature in Windows 11 Notepad that, by default, allows you to close the application, even if there are unsaved files, similar to Notepad++

      Just in case you have not figured out, on your own, how to change this default behavior ( witch would really surprise me ! ), here is the method :

      Open Microsoft Notepad

      Click on the gear icon, on far right of the Menu bar

      Look for the line When Notepad starts

      Click on the arrow on the far right of this option

      Select the Start new session and discard unsaved changes option

      Close and re-start Notepad

      => The old Notepad behavior should be back with just an untitled tab when starting Microsoft Notepad !

      Best Regards,

      guy038

    • mapsonxM

      Daily Reliability Monitor events

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      3
      0 Votes
      3 Posts
      227 Views
      xomxX

      @PeterJones

      That “Stopped working” is a common overall expression there for the app crashes, hungs etc.
      So @mapsonx should open that “details” you mentioned or simply launch the Windows EventViewer, i.e.:

      press WinKey+R to invoke the Windows Run-dialog copy & paste there: eventvwr.msc /c:"Application" and click OK wait for the Event Viewer launching and attaching to OS logs search/filter there for “Error” Level records (or simply follow the ReliabilityMonitor published date/time of the N++ problem), with “notepad++.exe” within app crashes usually have as log Source “Application Error”, frozen apps “Application Hang”

      Then publish here what the content of such a record tell us, e.g.:

      Faulting application name: notepad++.exe, version: 8.9.3.0, time stamp: 0x69bc8a94 Faulting module name: USER32.dll, version: 10.0.19041.6926, time stamp: 0xcd1afcbd Exception code: 0xc0000005 Fault offset: 0x00000000000467cd Faulting process id: 0x296c Faulting application start time: 0x01dcce3ba0a16cb7 Faulting application path: ...\npp.8.9.3.portable.x64\notepad++.exe Faulting module path: C:\Windows\System32\USER32.dll
    • Ronald BesdanskyR

      Line number issues

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · · line number
      7
      0 Votes
      7 Posts
      280 Views
      Ronald BesdanskyR

      @Ronald-Besdansky Hi Terry Deleting that plugin fixed the issue. Thanks.