• Please Read This Before Posting

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

    Pinned
    15
    0 Votes
    15 Posts
    4k 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
    17k 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.

  • Standard ANSI and code still change to something else

    14
    2 Votes
    14 Posts
    210 Views
    CoisesC

    @NolanNolan said in Standard ANSI and code still change to something else:

    But really weird that using Microsofts own notepad.exe that comes with a standard windows installation makes windows search not detect characters in txt files that belongs to the installation language of the OS.

    Perhaps not quite as strange as it might first appear.

    Support for Unicode in Windows dates back to the first release of Windows NT in 1993. (NT was a “business” operating system; it took another eight years or so to get Unicode into “consumer” systems.) The thing is, Windows chose to support 16-bit characters: UCS-2, which later became UTF-16. UTF-8 wasn’t even presented publicly until 1993, and it took many more years for it to become popular. Most early adopters of Unicode, like Windows, used 16-bit “wide” characters.

    So, for a long time, in Windows “Unicode” meant UTF-16. Windows XP (2001) introduced code page 65001 for UTF-8, but it was only useful in conversion functions and console sessions. In Windows 10 Version 1903 (May 2019), it became possible to set UTF-8 (65001) as the system code page; however, that doesn’t (yet, in 2025 at least) do as much as you might hope it would, and it can precipitate odd behavior in software. (I tested your specific case: setting Use Unicode UTF-8 for worldwide language support does not change how search in Windows Explorer interprets files without a byte order mark.)

    Files using legacy (“ANSI”) encodings are too common to ignore, but, as @PeterJones pointed out in his earlier post in this thread, there is no completely reliable way to distinguish an “ANSI” encoding from UTF-8. Windows chose to use the byte order mark (already in use in UTF-16 files) to signal when a file is UTF-8. Windows simply does not recognize a file without a byte order mark as Unicode.

    Notepad++ uses byte order marks, too, but it also recognizes when a file has a very high likelihood of being UTF-8 (without a byte order mark). This is possible because the details of UTF-8 encoding make it highly unlikely that a legacy text file will “accidentally” also be a valid UTF-8 file — unless it is very short, has been intentionally crafted to trigger false detection, or contains only ASCII characters. (Since ASCII characters are represented identically in UTF-8 and in legacy code pages, the last case only matters if you edit a file which contained only ASCII characters so that it contains one or more non-ASCII characters. In that case, it is important to set your intended encoding depending on how the file will be used.)

    What you’re confronting is the difference between how Windows detects UTF-8 (must have a byte order mark) and how Notepad++ detects UTF-8 (valid UTF-8 byte sequence, which is statistically highly unlikely to be a legacy encoding).

    There is no good solution to this without inventing a time machine and changing decisions that were made over three decades ago.

    Well… no good solution that does not sacrifice reasonable backward compatibility. I consider that one of Windows’ best features, and I admire Microsoft for sticking to it. Twenty-year old programs can still run on current versions of Windows. I hate the culture of “If it’s not constantly maintained and upgraded, junk it!” that’s overtaken most of the computing world. A job once done well should stay done. (I suspect this has a lot to do with Microsoft’s dominance in business applications.) Not everyone shares my view.

  • 0 Votes
    3 Posts
    37 Views
    Tristan HilamanT

    @PeterJones Thank you!

  • How do I disable updates FOREVER!

    5
    0 Votes
    5 Posts
    63 Views
    Andrei Mincov 0A

    @PeterJones I think I found the culprit behind this.

    Looks like I had my Avast autoupdater to ON, and probably it was the reason behind quiet updates for both Notepad++ and my Mozilla Thunderbird 42.

    It became a routine for me to reinstall old versions over and over and over agian.

    Thank you for your response.

    Really appreciate your help and detailed approach.

  • How to Print Pretty with missing close tags.

    7
    0 Votes
    7 Posts
    198 Views
    PeterJonesP

    @guy038 said in How to Print Pretty with missing close tags.:

    Let’s start from your solution

    I’d hardly call it “my” solution. In that I used your generic find/replace-in-region formula, and plugged in reasonable values for the “variables” from that generic formula. The whole point of that generic formula is to make it really easy for anyone to just plug in their BSR/ESR/FR into the formula, and have it “just work”, without having to optimize or tweak.

    If I run, successively,

    As @Doctor-Rashir said here, “There are many closed tags”… In other words, it’s not just SONRQ and SIGNOMSGSRQV1, and trying to manually run a separate regular expression for each of the “many closed tags” is thus not practical. That is why I went to a script to automate it.

  • Edited Post content was flagged as spam

    5
    0 Votes
    5 Posts
    79 Views
    Doctor RashirD

    @PeterJones
    Thank you for the reply. Yes, I understood that inference. I was hoping there was additional tweaks to try. Yes, I could do a reply. It was triggered on a very minor edit. Maybe the site support would be interested in the issue. But it’s not important to me now.

  • How to change file icon on txt files ?

    11
    0 Votes
    11 Posts
    268 Views
    N

    @PeterJones

    i have to hand it to you this worked, thank you :-)

    I couldnt find this description elsewhere, i tested all the 3 thirdparty apps, wthy didnt work though

    I seems to have missed the reg addition of defaulticon should be in the string sith notepad++

    best Nolan

  • 0 Votes
    9 Posts
    365 Views
    Alan KilbornA

    When the Fill Find Field with Selected Text option, in settings, is unchecked, and the user invokes Select And Find …, perhaps the program should (simply) run the code for the “volatile” version of the command.

    (I should have said this in my previous post.)

  • can't find words with search in files

    5
    0 Votes
    5 Posts
    225 Views
    László BotkaL

    @Rick-Kosters

    You can try the free Agent Ransack utility from https://www.mythicsoft.com
    It works with .doc, .docx and .pdf files too.

  • Printing (laser) black on white darkness

    3
    0 Votes
    3 Posts
    80 Views
    Alan KilbornA

    @me

    I printed out a cookie recipe in NP++ and LO Writer

    Try to be more explicit. I actually use LibreOffice and, until @PeterJones explicitly stated it in his response, I had no idea what you were talking about when you said “LO”.

  • Replacing text blocks with ToolBucket

    3
    0 Votes
    3 Posts
    64 Views
    PeterJonesP

    @JuergenBelle ,

    Further to what @h-jangra said, since N++ v8.8.6, you can just paste your multi-line text into the Replace, and use the Search @h-jangra suggested, and you don’t need the plugin at all…

    If your replacement has parentheses () or dollar signs $, it might not work as you expect, so you might have to escape them, as described in the user manual (https://npp-user-manual.org/docs/searching/#substitutions)

  • Move Line Up

    6
    1 Votes
    6 Posts
    315 Views
    Barry LortB

    @guy038

    More good information. Thank you!

    Barry

  • Notepad++ VERY slow to open

    16
    0 Votes
    16 Posts
    11k Views
    MarcosM

    Hello!

    I’m having a similar problem with NPP being slow to open, and I believe it’s related to the fact that I have several “draft” (unsaved) files saved, since I have the options enabled: backup and remember last session.
    This has already been reported in another post:

    https://github.com/notepad-plus-plus/notepad-plus-plus/issues/14000

    In my case, I have an SSD and it takes about 20 seconds to load about 200 files. So it spends about 0.1 seconds per file.

    I did some tests using Process Monitor, as shown in the image below.

    notepad.png

    In this case, it seems that NPP keeps trying to create files in the “Program Files” folder, but it gives a “NAME NOT FOUND” error.
    After that, it goes to the “AppData/Roaming…” folder where the backup files are located.

    In short, based on this result, does anyone have any idea how to try to solve this delay, perhaps caused by failures or repeated attempts to read/write the backup files?

  • notepad++,exe- bad image

    3
    0 Votes
    3 Posts
    259 Views
    pbarneyP

    @Alan, listen to @PeterJones when he says to scan your computer for viruses. TextShaping.dll is commonly used in DLL sideloading exploits, and if your executables are trying to call it when it resides in a place it doesn’t belong (your Notepad++ directory), then there’s a good chance your computer has been hacked.

    That doesn’t mean you should freak out just yet, just take some steps to ensure that you’re not hacked.

  • Update CLI command

    4
    0 Votes
    4 Posts
    5k Views
    D

    All the gup.exe does is to check if there is a newer version than specified by the string input parameter is available. It does not handle the update itself. You would have to code it for yourself.

    For example like this in Powershell 5.1 for the 64bit version of Notepad++.

    [string]$ScriptFolder = $PSCommandPath | Split-Path -Parent $Notepad = Get-ItemProperty -LiteralPath 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\Notepad++' $InstalledVersion = $Notepad.DisplayVersion $UpdateCheck = Invoke-WebRequest -Uri "https://notepad-plus-plus.org/update/getDownloadUrl.php?version=$InstalledVersion" $UpdateCheckAnswer = ([xml]$UpdateCheck.Content).GUP if ($UpdateCheckAnswer.NeedToBeUpdated -eq 'yes') { $Filename = $UpdateCheckAnswer.Location.Split('/')[-1] Invoke-WebRequest -Uri $UpdateCheckAnswer.Location -OutFile "$ScriptFolder\$Filename" & "$ScriptFolder\$Filename" '/S /closeRunningNpp' }
  • Issue with XML Tools Pretty Print

    1
    0 Votes
    1 Posts
    142 Views
    No one has replied
  • WebEdit Plugin for NPP x64 ?

    9
    0 Votes
    9 Posts
    2k Views
    Richárd StockingerR

    Hi everyone!

    I have some good news and bad news.

    The good news is that I’ve finished WebEdit 2.9, which includes several new features: multi-select support, tag recommendations, quick tag addition/editing, and a few other minor upgrades.

    The bad news is that I’ve actually finished all the essential features I wanted to implement, so I’m not planning any further developments for the time being. Of course, you can still report bugs/issues and even make minor development suggestions, but the goal remains to keep the plugin fast, lightweight and easy to use.

    The overview of the (new) features is also available on the module’s main page: https://github.com/Krazal/WebEdit

    What’s next: when I have time, I’d like to return to my own plugin, because it has been full of bugs for months (not my fault!). ^^’

    Thank you for letting me contribute to this plugin, which I hope others will find just as great and useful as me!

  • Using the Language Editor

    4
    0 Votes
    4 Posts
    393 Views
    Lycan ThropeL

    @James-Burke-0 ,
    In addition to what @PeterJones has explained, the only other thing you could do, is bring up dBASEPlus in the Language->User Defined Language->Define your language...User language drop down box, and then `Save As’ and give it a new name.

    At that point, you can play with the settings, keywords, etc… all you want in your own named UDL. Because of the way the entire UDL ecosystem works, however, you’ll lose the ability to use the autoComplete file and the functionList file as well, because of their links to the UDL’s file names that those work with, as well as the overrideMap.xml linkage file, but you’d have JUST the UDL to adjust to your likings and then when you’re satisfied, you could go back to the original dBASEPlus UDL and put the changes that you want into the Dialog boxes for the language and then do as @PeterJones says, and just close and reopen the editor and your changes will be applied to the intalled dBASEPlus UDL definition.

    If you don’t need the Function List or Auto Complete capability, you can just use your newly named version of the dBASEPlus UDL to view and edit dBASE specific files.

    Just in case this is what you meant you wanted to do, to customize the dBASEPlus UDL without losing the original functionality of the original package. I hope this helps.