• 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
    16k 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.

  • Random insertion of " ` " in my files

    1
    0 Votes
    1 Posts
    16 Views
    No one has replied
  • I need a function/plugin to extract only unnecessary text from lines

    15
    0 Votes
    15 Posts
    386 Views
    mpheathM

    @PeterJones said in I need a function/plugin to extract only unnecessary text from lines:

    @Ragnar-Lodbrok ,
    I think the answer is “there is no way to do it in one meaningful regular expression, because your data is not consistent enough”

    The data is not consistent as it appears to be harvested data:

    https://github.com/RagnarLodbrok1981/proxy-scraper-checker
    forked from
    https://github.com/monosans/proxy-scraper-checker

    That may explain the pipe characters in the log like as shown in the repository’s readme image. This appears to be dishonest obtained data.

  • Default LF and not CRLF

    3
    0 Votes
    3 Posts
    73 Views
    PeterJonesP

    @PeterJones said in Default LF and not CRLF:

    only one instance (in theory, the last to close) has permission to write the settings to disk.

    that (or my original phrasing of “in theory, the first instance”) are both technically right, and practically wrong. it’s actually very confusing, and it depends on which configuration file you are talking about.

    I took a portable, and put it into multi-instance mode. then opened two instances. Instance 1, I set to Dark Mode + Small Toolbar Icons, instance 2 I set to Light Mode + Big Toolbar Icons. I closed Instance 2, and looked, and saw that config.xml was saved, but session.xml did not save. then I closed Instance 1, and saw that config.xml was saved again and session.xml was saved this time. So in this run, both were able to write to config.xml, but only the first instance was able to write to session.xml. When I ran one instance of Notepad++ after this, it was in Dark Mode + Small Toolbar, which shows that instance 1 definitely “won” for the config.xml

    I started a new pair of instances – this time, they both started out in Dark Mode + Small Icons. Then I changed Instance 1 to Light Mode + Small Icons, and changed Instance 2 to Dark Mode + Big Icons. I closed instance 1, and saw that both config.xml and session.xml were saved. Then I closed instance 2 and saw that config.xml was saved but session.xml was not. This seems to confirm my working mental model. When I started one instance after this, it was Dark Mode + Big Icons, which was the instance 2 setting, and thus the last one closed “won” for config.xml again.

    Hence, the way I will phrase things, at least based on my best understanding for now:

    When multiple instances of Notepad++ are open, each will write its config.xml when it exits, so the last instance closed is the one whose config.xml will “win”. However, only the first instance of Notepad++ in multi-instance mode gets permission to write to session.xml, so only that first instance will ever save its session.

  • 1 Votes
    8 Posts
    223 Views
    D

    @gerdb42 Thanks. A little tricky, but will be useful once I’ve worked on a couple of simple ‘test’ examples. It’s not exactly like the Npp version, apparently, but will serve as ‘fairy bike wheels’ until I master this stuff a little more. :-)

  • Pasting columns into txt from xlsx

    4
    0 Votes
    4 Posts
    90 Views
    caramadraC

    Thanks, @Terry-R and @PeterJones - there’s a lot in that plugin that I’m not sure I’ll need or understand, but the Elastic Tabs does what I need for now.

  • Run truncates two or more spaces to one space

    3
    0 Votes
    3 Posts
    129 Views
    László BotkaL

    Thank you, your help was very useful and effective.

  • Replace Notepad++ as Default W10 editor. How to ?

    2
    0 Votes
    2 Posts
    196 Views
    PeterJonesP

    @AlainCh2 said in Replace Notepad++ as Default W10 editor. How to ?:

    Activated in right click > Open With
    Open with >Choose another App \ Browse to Program Files/Notepad++ 🙄

    -That’s not enough … …crazy as it can be,

    That always worked for me back when I was using Win10. And I just verified I had no difficulty in Win11 getting it to keep Notepad++ as an Open With for .ini files.

    BUT now you have fixed it as > Edit with Notepad++,

    If all you are looking for is the Edit with Notepad++ choice in the right-click menu, when you run the installer initially, assuming it prompted with the UAC prompt, your installation should have included the ShellExtension DLL C:\Program Files\Notepad++\contextMenu\NppShell.dll (assuming you installed newer than v8.5.1; older versions used a different name, and didn’t work with Win11). And it should have registered that DLL so that the Windows Explorer context menu includes that. If something went wrong with that registration, you could open a cmd.exe or PowerShell window in that contextMenu directory, probably using “as Admin” when open that window, and then follow the manual DLL registration instructions instructions from the user manual. (That page in the user manual has a lot of different tactics to get the Edit with Notepad++ or similar, including a registry entry that adds it as a verb to all files, so that you don’t have to do the OpenWith on each file type. But the Shell Extension DLL is really the preferred method, because it’s designed to do things the way Windows likes.)

    With the modern Notepad++, that same DLL should work to get the right-click entry with either Win10 or Win11.

    If you got it working using an alternate method (like the registry edit shown in the first post), great. This is just presenting an alternate method, and the way that Notepad++ intends you to get Edit with Notepad++ functionality.

  • [FORK] after v8.8.2 is slow to launch

    3
    0 Votes
    3 Posts
    97 Views
    PeterJonesP

    @Lee ,

    Since it last worked in v8.8.2, the problem wasn’t actually with the v8.8.6 specifically, so it doesn’t belong in the v8.8.6 announcement, which is only for regressions between v8.8.5 to v8.8.6 specifically. Problems that aren’t specific to the newest version should be talked about in the Help Wanted section (where I moved your post), not in the announcements. If it can be confirmed as a bug in Notepad++, we will then encourage you to create an bug report in Notepad++'s GitHub-based Issues tracker.

    There is a command-line argument, -loadingTime, which could help debug a slowness.
    Are you able to edit the shortcut that you use, so that you can see what it says takes a while?

    Actually, do you have anti-virus or similar computer-protection software? Because v8.8.3, which is the first version that you have a problem with, was the first version to use a self-signed certificate, rather than a DigiCert certificate. I am thinking that it’s likely that your AV software is getting hung up on that – so it scans notepad++.exe once per boot. Follow the instructions in the 8.8.3 description (or equivalently, in the User Manual’s Self-Signed Certificate section, choosing Local Machine) to make sure you’ve got the certificate installed correctly. If that’s not enough, there’s an example in this discussion, the user eventually found that going to the “HIPS” setting in Comodo Internet Security (the AV/safety SW on that machine) and setting it to allow Notepad++ was enough to get rid of the problem: so you should check your AV/safety SW for HIPS or similar settings to allow/trust/whitelist certain apps.

  • Font size is different (wrong) in the latest version

    3
    0 Votes
    3 Posts
    119 Views
    CoisesC

    @TG-King:

    In addition to @PeterJones’ suggestions, also be sure you haven’t accidentally zoomed out (for example, by using the mouse wheel with the Ctrl key down): View | Zoom | Restore Default Zoom will set zoom back to normal.

  • Open files with NPP_EXEC then switch to the tab of the first opened file?

    5
    0 Votes
    5 Posts
    104 Views
    Vitalii DovganV

    I’ve added this case to the Manual!
    https://d0vgan.github.io/nppexec/?q=4.6.20

  • WebEdit Plugin for NPP x64 ?

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

    A little “almost” missed update: WebEdit has been added to the nppPluginList and is available in Notepad++ v8.8.6. 🥳

    Regardless, I still would like to add a few more small features to the plugin. I’m trying to make these available in the latest releases,* and if everything works fine, I’d like to eventually submit them to the nppPluginList with a new (and a last?) PR.

    * To try it out, just overwrite the C:\Program Files\Notepad++\plugins\WebEdit\WebEdit.dll file with the downloaded and unzipped one – but make a backup anyway. ;)

  • 0 Votes
    7 Posts
    316 Views
    Julian RedGJ

    @Mark-Olson I updated all the plugins because, as you suggested, they were too outdated
    thanks a lot

  • Sudden issue with increasing cursor offset proportional to column

    4
    1 Votes
    4 Posts
    92 Views
    Jon LesterJ

    Thanks for the replies both.

    @Coises that seems to have solved it! - all is good again after switching to Direct Write - many thanks!

    I haven’t updated video drivers, but Win10 installed a couple of updates at some point today (KB5065429 and KB5065957) - maybe there was a related change there somewhere.

  • easy way to move a file tab in the open file list

    6
    0 Votes
    6 Posts
    356 Views
    mathlete2M

    @PeterJones said in easy way to move a file tab in the open file list:

    I am assuming you are talking about the sub-window/panel toggled using View > Document List

    Ah, now the original question makes sense. I wasn’t familiar with that feature until now, so without the “>”, I figured that “View Document List” from the post and “open file list” from the title were both referring to the list of files that you see in the File menu, and that they hadn’t noticed that this list is different from the active set of tabs.

    FWIW, I’m a bit surprised that you can’t reorder files from within the View > Document List feature via click-and-drag. I can understand why some people would prefer this vertical layout over the horizontal layout of the tabs; it’s certainly more intuitive than the layout that you get when you check the Vertical option in the Tab Bar section of Settings > Preferences, so perhaps there needs to be a “stacked” sub-option for this layout.

  • Please recommend encryption plug-in

    5
    0 Votes
    5 Posts
    2k Views
    PeterJonesP

    @Justin-Brown said in Please recommend encryption plug-in:

    @PeterJones I know this is an old thread, but it is precisely what I was looking for. But I am curious if you are concerned about the ability to “undelete” the temp file when you use your script. Does rm fully remove the file, including overwriting bits? Or has Windows improved it’s undelete such that it is no longer a concern?

    I hadn’t noticed I used rm. That’s an old win32 port of the gnu linux rm command (from the gnuwin32 bundle; hasn’t been updated in years). I have never looked into the source code, so I don’t know for sure if it overwrites first, but it’s doubtful.

    I also no nothing about the advanced features of windows del or the powershell equivalent. However, I don’t know whether microsoft has made those secure deletes, either. (A Notepad++ forum isn’t the best place to research about windows features, especially the more esoteric aspects.)

    If research in appropriate places doesn’t give you the answers you want or hope for with regard to windows file deletion, you might look into installing a secure command-line-based file deleter; it would very much surprise me if such a utility didn’t exist, but I have never gone looking for it, so I have no specific recommendations. But if you find such a utility that you trust, then use it (with its appropriate command-line options) in place of the rm -rf that I used in the script

  • Folding without closing parentheses or tags

    4
    0 Votes
    4 Posts
    155 Views
    Mister SmittM

    @rdipardo

    This is the perfect option!

  • Alt key interferes with work

    12
    0 Votes
    12 Posts
    2k Views
    PeterJonesP

    @Wester said in Alt key interferes with work:

    Same problem here – I’m studying the software and taking notes in Notepad in both Russian and English, and every time this stupid layout pops up and blocks input.

    As @Michael-Vincent said 3 years ago, hitting Alt is used as an accelerator to keyboard-access menu bars in almost every win32-api-based Windows application. Include Microsoft’s own notepad.exe.

    Who even came up with this?

    A small company called Microsoft has been using that feature in their operating system for decades. I am sorry this bothers you.

    The devs of a program whose only purpose is text input didn’t consider that pressing Alt would ruin typing when switching languages? Or did no one think that there are not only Americans but also people who actually use multiple keyboard layouts? And what are all these weirdos even writing here?

    And then you switch to full on insult mode, being rude to people who had nothing to do with that design decision that happened decades ago. Brilliant, and well argued. (That last sentence was sarcasm, in case you couldn’t tell.)