• Please Read This Before Posting

    Pinned Locked
    1
    7 Votes
    1 Posts
    8k Views
    No one has replied
  • v8.7 Search Results Missing

    Pinned
    15
    0 Votes
    15 Posts
    5k Views
    xomxX

    This v8.6.9-v8.7.2 issue has been fixed (GitHub commit).
    The fix will be included in the next Notepad++ version (probably v8.7.3).

    @PeterJones
    I would leave this topic pinned for a while longer until the fix reaches most N++ users.

  • HELP: Having trouble with Macros in v8.5.3 or later

    Pinned
    28
    2 Votes
    28 Posts
    19k Views
    Mike NewmanM

    Moderator Note: The contents of this post were moved to a separate topic, Macro works normally, but fails when shortcut is Ctrl+Shift+C, because it’s actually separate from the >=v8.5.3 issue for this Topic.

  • Toolbar button names

    4
    0 Votes
    4 Posts
    91 Views
    mapsonxM

    @PeterJones said in Toolbar button names:

    @mapsonx,

    I previously said,

    I am curious where you found such advice.

    If you are talking about my reply to your 2025 question, where half of your question was about changing the icons, you misunderstood my answer, because I was talking (at that point) about Notepad++'s built-in icon-replacement, not the Customize Toolbar plugin. And I wasn’t talking about using “action names” in the button at all.

    Settings > Preferences > Backup > ☑ Enable session snapshot and periodic backup

    That setting kinda represents the journey of discovery for me, who, is certainly a novice, and has been reminded regularly of my level of ignorance when it comes to an impressive tool like Notepad++. Obviously, the way manifested itself didn’t make sense to me, never seeing that effect before elsewhere.

    I have several abnormalities with my OS that I;m trying to solve. Dealing with them, and trying to find the best text editor to make my job as uncomplicated and efficient as possible, has been a chore. I only have so much time. I forgot some of my previous posts, in part due to the fact I had multiple things going on at once. A lot to absorb. My apologies.

    As far as the “Quick Codes” thing is concerned, it was probably a result of a google search/AI result inquiring about creating Notepad++ toolbar button titles/names, since some other text editors do have such a feature.

  • 0 Votes
    4 Posts
    128 Views
    Claudia SvensonC

    The problem is that it is highly recommended to store

    Powershell scripts with .ps1 extension

    and (sometimes)

    pure textfiles (ith .txt eextension

    as UTF-8 with BOM.

    In contrast it is urgently required to store

    DOS batch scripts with .bat extension

    and

    Python scripts with .py extension

    as UTF-8 WITHOUT BOM.

    I cannot count how many times I hat the wrong encoding and experienced some weird execution problems.
    Since I oftentimes use Notepad++ as initial script editor it would be the best place to auto-adjust Encoding here.

    Can I somehow let NP++ me warn when it detects a bad Encoding (depending on the current file extension) and suggest a switch? Even when I rename or edit an existing file?

    This would be a great convenient enhancement feature.

  • Notetab++ novice questions

    Locked
    4
    0 Votes
    4 Posts
    816 Views
    PeterJonesP

    Any future replies need to go to this 2026 topic where @mapsonx asked essentially the same question

    This Topic is locked.

  • Replace Notepad with Notepad++ portable as default

    Locked
    3
    0 Votes
    3 Posts
    65 Views
    PeterJonesP

    @mapsonx ,

    This Topic is closed/locked as a duplicate of your original.

    If you have more questions about the answers you received, reply in the original discussion, not here; and ask specific questions about the answer you were given, don’t just re-iterate what you’ve already said.

    Update: this is also the same question you asked in June 2025. Apparently, you don’t actually read the replies to questions you already asked. If it’s because you don’t realize you’ve gotten replies, I recommend going to your forum settings (click your avatar/icon in the upper-right in the forum, click settings, then change “When a new reply is posted in a topic you are watching” and/or “When someone mentions you” from None or Notification Only to Notification & Email, so that the forum will email you when you get a reply)

  • How to compare 2 text files and delete duplicates

    11
    0 Votes
    11 Posts
    690 Views
    guy038G

    Hi, @jak, @peterjones, @pnedev, @phil-pascal and All,

    Ah…, OK :! But it’s quite funny, @jak, because it’s exactly what I proposed in my last two posts !!!

    Giving the initial contents of your two files :

    The Original Music Collection which contains : Coldplay yellow Elton John Rocket man Beatles abbey road Beatles Love me do Beatles hey Jude Monkees daydream believer The New Music file which contains : Beatles abbey road Beatles Love me do Beatles hey Jude Monkees daydream believer The move blackberry way (1) By running a search/ replacement with regular expressions :

    I append, at the very end of the New music file, the contents of the Original Music Collection file, after a line of, at least, 3 equal signs, giving this temporary New music file :

    Beatles abbey road Beatles Love me do Beatles hey Jude Monkees daydream believer The move blackberry way ========== Coldplay yellow Elton John Rocket man Beatles abbey road Beatles Love me do Beatles hey Jude Monkees daydream believer

    Now :

    Switch to the New Music file

    Open the Replace dialog ( Ctrl + H )

    Uncheck all box options

    SEARCH (?x-is) ^ (.+\R) (?= (?s) .+? ^===+ .+ ^ \1) | (?s) ^ ===.+

    REPLACE Leave EMPTY

    Tick the Wrap around option

    Select the Regular expression search mode ( IMPORTANT )

    Click on the Replace All button

    => You should get your expected New Music file, below :

    The move blackberry way Save the modification of the New Music file (2) By using the ComparePlus plugin :

    First, use the Plugins > ComparePlus > Diff Visual Filters... option

    Check the Hide added/removed lines option and valid this choice with the OK button

    Then, use the specific option Plugins > ComparePlus > Find Unique lines

    Now, select the New Music file ( IMPORTANT )

    Run the Plugins > ComparePlus > Delete all/selected visible lines option

    Run the Plugins > ComparePlus > Clear Active Compare option

    Finally, save the modifications of the New Music file ( IMPORTANT )

    Best Regards,

    guy038

  • Open file vanishing after reboot ?

    1
    0 Votes
    1 Posts
    70 Views
    No one has replied
  • How can I pass a search term to Notepad++ via command?

    16
    0 Votes
    16 Posts
    382 Views
    N

    Hello,

    I wanted to show you the purpose of this function.

    Background:

    Highlight a term in the browser Search for it in files using Everything via a button (Content) Right-click the found file to open it in Notepad++ and jump to the searched term.

    See the video off it on Imgur

    I’ve actually been using the editor since I started using computers privately (2008), but I’ve never really explored its inner workings and capabilities. It was never necessary so far—it has everything needed for everyday use.

    I also wanted to sincerely thank you again for the prompt help—it was definitely a positive experience.

    Best regards,
    Björn

  • Make notrepad++ default

    2
    0 Votes
    2 Posts
    139 Views
    PeterJonesP

    @mapsonx said in Make notrepad++ default:

    I read the info here Shell Extension, and here Replacing Notepad with Notepad++ in Windows 10, but I’m a bit anxious about it.

    User Manual > Other Resources > Notepad Replacement gives a fuller explanation than some random gist

    I’ve been using the portableapps version.

    shudder

    I’ve had a few issues lately with some other portableapps wiping out profiles.

    Considering that they modify the binaries without publishing the codebase changes, in violations of the open source license of the software they “distribute”, you’re lucky if losing a profile is all that happens.

    I don’t want that happening with Notepad++, so I want to switch to the regular potable version I just downloaded from here Download Notepad++ v8.9.3.

    Good idea.

    That said, I need to make Notepad++ the system default.

    It seems a mixed bag: wanting it as system default, associated with lots of file types, and using the Shell Extension, but not wanting to “install” it. It might help us give you better advice if you explain what parts of the “install” that you are opposed to. Is it just storing the settings in %AppData% that you don’t like? Or is there something else? The installer can install into any directory, not just Program Files; the installer can choose to not use %AppData% (as long as it’s not installed in Program Files); the installer automatically registers the Shell Extension for you.

    That’s when learned it is not simply a matter of doing it in Settings > Preferences > FIle Associations.
    So, it seems my only alternative is “Choose default apps by file type”??

    You can start with the Settings > Preferences > File Associations. But that uses the ancient method of file association, and modern Windows 11 actively fights against those old-style associations.

    Open With is Windows’ preferred method, because they want to make sure it’s the user, not an over-aggressive installer, that is choosing the default app (and that’s something I applaud them for).

    If you’ve done at least one Open With, then your registry should have an HKEY_CURRENT_USER\Software\Classes\Applications\notepad++.exe “key”. On that key, if you right-click and do a new key as a subkey on it, to create SupportedTypes as HKEY_CURRENT_USER\Software\Classes\Applications\notepad++.exe\SupportedTypes. Inside that, you can do new string values, where the left side is .ext (for whatever extension) and the right side is empty. Windows uses this as the way to hear an app say, “I want to handle this type”, and it helps Windows prioritize the app in the Open With and other things.
    For the individual file-type extensions, Windows stores them in HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.XXX\UserChoice (for example, .txt for the .XXX location), in the ProgId=“Applications\notepad++.exe” value. So, if you created a registry file like

    Windows Registry Editor Version 5.00 [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.txt\UserChoice] "ProgId"="Applications\\notepad++.exe" [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.123\UserChoice] "ProgId"="Applications\\notepad++.exe" [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.456\UserChoice] "ProgId"="Applications\\notepad++.exe"

    and ran that file, it would try to set the chosen application for each of those extensions (.txt, .123, and .456) to use Notepad++. (You would, of course, have to edit that file to have all the extensions that you wanted to choose, and to not use the .123 and .456 dummy extensions). But, again, I think Windows OS notices when someone tries to do that, and it might require you to confirm the choice the first time you double-click on such a file.

    caveat: playing with the registry, through regedit or running .reg files you find on the internet, can bork your system. these are examples that I believe are safe, but you are responsible for your own system.

    I extracted NppShell.dll, but I suppose in this scenario I won’t be using it.

    I guess I’m confused. I thought, by your first sentence, that you wanted to use it. Do you want an Edit with Notepad++ entry in the right-click context menu for every file type, whether or not it’s associated with Notepad++? If so, then register NppShell.dll. If not, then I’m not sure why you brought it up at all.

    Personally, I find that the right-click version is the easiest way for opening files that don’t default to Notepad++ (for example, editing a .bat, since you don’t want to double-click on a batch file to edit it, since that should be reserved for running it). So whether you choose to use the installer, or manually register it in the portable version, I would definitely recommend using the Shell Extension.

    I also need some advice transferring all settings from portableapps.

    copy the config.xml and similar XML files . The User Manual > Upgrading > Upgrading a portable edition talks about the critical and less-critical files for getting settings ported over from one portable to another.

  • How to Use Notepad++ As a Daily Journal

    3
    0 Votes
    3 Posts
    205 Views
    T

    @PeterJones

    Thanks for your reply. I will give your solution a try as a Macro learning experience. Maybe I’ll find other uses for it.

    But, I just came up with a different solution:

    I like Notepad++ so far, so I used the preferences to set Notepad++ as the default for a small number of file types I use occasionally. I renamed the extension of the file I use as my daily journal/log from .txt to my initials .th. I used the file properties to open that file with Windows Notepad.

    It’s working well for me. I can use my journal/log with Windows Notepad, and everything else uses Notepad++.

  • Dark Mode style for UDL

    7
    0 Votes
    7 Posts
    391 Views
    Lycan ThropeL

    @dfs ,
    We could go a step further and lament that it would be nice if the entire graphical environment of NP++ could be contained in one dialog setting, and then when we switched between Light or Dark, the environment would change all the UI references:

    Settings->Preferences...->Dark Mode,
    Settings->Style Configurator...->Style:, and the
    Settings->Style Configurator...->Select theme:

    …could be coordinated to make just switching between Dark Mode and Light Mode change them all, accordingly. As it is, I’m glad to have just found out that the Dark and Light language files can automatically change by setting that one switch in the dark mode file @PeterJones mentioned, and that automatically chooses the correct code coloring file for the environment (Dark/Light) chosen.

  • 0 Votes
    4 Posts
    190 Views
    Phil pascalP

    @Dervars14 Just checked and unfortunately the undo, ^Z, does not work. This used to be a more common occurance in the old days, Prior to Windows 7 and back in the DOS days, there was no checking to see if wanted to keep a file, it just got overwritten even if a totally different file, but just had the same name. The way we used to get around this is with a recovery program. The good thing is for a long time, whenever you save a file, it actually saves it to a different area of the dirve, precisely for this kind of incedent.

    First important thing is don’t do any work on that drive, if the data is still there, it is not protected, the more you use the computer, the more likelihood those clusters of the drive will get overwritten.

    I don’t think Windows has any internal programs, other than the Recycle bin, which is no use here, as overwritten files aren’t placed there. There is a free program called Recuva, from Piriform, the same people that do CCleaner. If possible, try and download this on another computer to a USB drive, as I said, the more work you do on the drive, the chance of losing the data.

    The other good thing with using another machine, is you quickly play around with recuva, it is very basic program, the results are in table form, so easy to rearrange. You can save any detected files to the USB drive as well. If you get the file back, then just replace the current one. And this is the way to all learn to do backups more regularly, which reminds me.

  • using User Defined Language : v.2.1.0.12

    5
    0 Votes
    5 Posts
    341 Views
    Fred MorantF

    @PeterJones

    I will try with v8.9.3-RC and v8.9.1,

    regarding my last question it’s with v8.9.2,

    “create new” works fine with old name, it’s the “save as” function which shows that behavior : “can’t use a name preivously used” (i wasn’t enough precised in my question, sorry).
    Note : if i well understand the way notepad++ works at closing : “save as” should not be used,

    I will have a try with the portable version of v8.9.3-RC,

    Again thanks for the help,

  • Is there any way to disable the cursed "In selection" checkbox forever?

    4
    0 Votes
    4 Posts
    218 Views
    Alan KilbornA

    @Võ-Văn-Hiếu said:

    It seems that when I select all the text (which should exceed that default number), the box stays checked even after I stop selecting.

    I’m not quite sure what your meaning is here, but…

    …and I presume that when you say “default number”, you mean 1024…

    The In selection checkbox isn’t truly dynamic; it isn’t going to change while you are selecting text. It only changes when you invoke search, and here are some examples of that:

    input focus in the editing area and you press Ctrl+f input focus in the editing area with Find window also visible, and you use the mouse to activate the Find window
  • search-and-replace NOOB question - CR and (any number)

    4
    0 Votes
    4 Posts
    189 Views
    J

    @PeterJones
    hello and Thank You…
    I think I had read all of the references you posted, and must have misunderstood everything.
    (sigh) I’m feeling so old (LoL)
    just used your example and it worked perfectly

    well, except I next will want to enter an exception for cases of a period before the first carriage return.
    I think I know how to get that working, now that you’ve given me a great direction.
    Again, Thank You!

  • 0 Votes
    20 Posts
    2k Views
    Troglo37T

    @PeterJones said in Is There a Way to Prevent Pasted Text from Spreading Out with Rows of Spaces?:

    Or, since you said,

    there aren’t any unused ones available under Plugins > Customize Toolbar

    - I assume this is the one where you say, "there aren't any unused ones available". I cannot imagine that you've _actually_ enabled another couple-dozen buttons from its list, so that there are no other "available toolbar buttons", as that toolbar would be so full as to be unusable. On the other hand, that's the only thing I imagine that you _could_ mean by such a sentence.

    Yes, all of the Old Large Legacy Icons are in the Current toolbar buttons box. After checking them, I decided that I might use all of them in the future.

    Well, with all of that said, thanks for being patient and hanging in there through all of this. I have everything working, including adding a new icon to the toolbar. And thanks for the updated scripts.

    I hope this thread serves many others.

  • Plugin to hide/unhide (collapse/expand) lines

    1
    0 Votes
    1 Posts
    89 Views
    No one has replied
  • 0 Votes
    8 Posts
    434 Views
    guy038G

    Hi, @b, @peterjones, @coises and All,

    Let’s consider the Spanish word comparación and its various forms below, pasted in a new tab :

    comparación cömparÅciõn CömꝕarÅcⓘoñ ȻOℳₚA⒭ⱯℭᴵꝊᵰ ƆºᶆⱷǞℝȺꜿᵼᴓɲ ɕƢꟽⓟǻꝝⱭƆⅈᴗN

    Note that I have deliberately exaggerated the shapes and modified the case of the possible characters !!

    If you do any of the six N++ searches, below, against the six lines in the new tab, you’ll see that ONLY the two first regexes, which refer to standard equivalence clases, can find all the lines.

    SEARCH (?=[[=c=]])\X(?=[[=o=]])\X(?=[[=m=]])\X(?=[[=p=]])\X(?=[[=a=]])\X(?=[[=r=]])\X(?=[[=a=]])\X(?=[[=c=]])\X(?=[[=i=]])\X(?=[[=ó=]])\X(?=[[=n=]])\X

    SEARCH (?=[[=c=]])\X(?=[[=o=]])\X(?=[[=m=]])\X(?=[[=p=]])\X(?=[[=a=]])\X(?=[[=r=]])\X(?=[[=Å=]])\X(?=[[=c=]])\X(?=[[=i=]])\X(?=[[=õ=]])\X(?=[[=n=]])\X

    SEARCH (?=[[=C=]])\X(?=[[=ö=]])\X(?=[[=m=]])\X(?=[[=ꝕ=]])\X(?=[[=a=]])\X(?=[[=r=]])\X(?=[[=A=]])\X(?=[[=c=]])\X(?=[[=ⓘ=]])\X(?=[[=o=]])\X(?=[[=ñ=]])\X

    SEARCH (?=[[=Ȼ=]])\X(?=[[=O=]])\X(?=[[=ℳ=]])\X(?=[[=ₚ=]])\X(?=[[=A=]])\X(?=[[=⒭=]])\X(?=[[=Ɐ=]])\X(?=[[=ℭ=]])\X(?=[[=ᴵ=]])\X(?=[[=Ꝋ=]])\X(?=[[=ᵰ=]])\X

    SEARCH (?=[[=Ɔ=]])\X(?=[[=º=]])\X(?=[[=ᶆ=]])\X(?=[[=ⱷ=]])\X(?=[[=Ǟ=]])\X(?=[[=ℝ=]])\X(?=[[=Ⱥ=]])\X(?=[[=ꜿ=]])\X(?=[[=ᵼ=]])\X(?=[[=ᴓ=]])\X(?=[[=ɲ=]])\X

    SEARCH (?=[[=ɕ=]])\X(?=[[=Ƣ=]])\X(?=[[=ꟽ=]])\X(?=[[=ⓟ=]])\X(?=[[=ǻ=]])\X(?=[[=ꝝ=]])\X(?=[[=Ɑ=]])\X(?=[[=Ɔ=]])\X(?=[[=ⅈ=]])\X(?=[[=ᴗ=]])\X(?=[[=N=]])\X

    In constrast to the last release of the Columns++ plugin, independant of Scintilla and doing true UTF-32 searches, which is able to match the six lines of our example, whatever the regex used among the six regexes above !

    This example clearly demonstrates that it’s possible to perform a search without considering case and/or accentuated characters with the v1.3.1 release of Columns++ plugin ;-))

    Best Regards,

    guy038