• Notepad++ v8.8.6 Release

    Pinned Announcements
    3
    4 Votes
    3 Posts
    2k Views
    donhoD

    @PeterJones
    Thank you for posting it & reminding me one more hard bug to fix :( - I’ll work on it ASAP.

  • Default LF and not CRLF

    Help wanted · · · – – – · · ·
    3
    0 Votes
    3 Posts
    21 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.

  • 0 Votes
    13 Posts
    204 Views
    PeterJonesP

    @Ragnar-Lodbrok ,

    Seriously, try a bit harder. The preview window on the right while you are writing your post shows you exactly what your post will look like; it should have been plainly obvious that the text wasn’t ending up in the text boxes.

    I have this list and I want to extract just the login:password and email:password from it.

    Now, how do I do this in Notepad so that it works on all lines? I know there are scripts for this, but is it more convenient to use Notepad, or should I use a regex command or a plugin?

    All the examples given so far, except the lua script, have literally been using a regex command. That’s what we’ve been showing you. If you don’t like it, tough.

    <new data>

    Seriously. Given all the data you had shown before, mine works. You just keep changing the rules every time you give new data. Now your data has lines that have no colon, but just have spaces between the email and password, or ones that have spaces and > signs. It’s completely arbitrary. Regular expressions aren’t magic or mind readers. If you lie about your data, you won’t be able to get everything.

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

    Besides that answer, I am tired of helping someone who’s probably just trying to make a username/password database that they can use for trying to break into other accounts. So I’m done helping (other than begrudgingly reformatting your posts and getting rid of all the passwords that you’re publishing to this site.)

  • ViSimulator Not supported anymore?

    Notepad++ & Plugin Development
    10
    0 Votes
    10 Posts
    8k Views
    Dave HouserD

    @PeterJones Thanks for the reply been waiting for something like this for years! Just set up the latest 1.2 version (released yesterday coincidentally) . NppVim is wonderful! It does everything ViSimulator did, it also fixes a few minor issues I have delt with in ViSimulator and added features.

    Fixes:

    Works in newest versions of Npp + 64 bit. Using v $ actually selects to the end of the line now. ViSimulator went to end selection minus one character at the end. Can use Ctrl+f to NP++ find in regular or edit mode. In ViSimulator I needed enter edit mode to use Ctrl+f to find.

    Added feature:

    Can use : <integer> to jump to line numbers now, had to use Ctrl+g to use Npp’s one becuase ViSimulator did not support it. Can now use inputrc commands I used in the past like c i w, and y i w to cut or yank a whole word while in the middle of it

    This is great, I’m really glad this exists now!

  • v8.8.6 - the function list is not working

    General Discussion
    8
    0 Votes
    8 Posts
    109 Views
    PeterJonesP

    @tino-tesu said in v8.8.6 - the function list is not working:

    That was a easy fix. I could add a new line after.

    Great.

    Notepad++ has a long-standing bug wherein if you have a FunctionList parser that includes a class, every class must have one or more whitespace after the last “closing” tag. Usually, it shows up with C/C++ classes, which end with } … but the bug also occurs for other classes in functionLists.

    The reason why v8.8.5 worked without the newline is because the v8.8.5 FunctionList parser for SQL didn’t try to do classes, so didn’t trigger that bug.

  • Featured special event !

    Blogs
    1
    5 Votes
    1 Posts
    47 Views
    No one has replied
  • New Vim modal editing plugin release

    General Discussion
    4
    0 Votes
    4 Posts
    3k Views
    W HW

    @h-jangra
    I’ve been waiting for this plugin for quite long, thank you for your contribution!
    I just tried out the initial release (v1.1.00) it works well in recent npp version, and I’m very happy to just navigate using vim commands.

    I’m looking forward to updates! How can I sponsor your work?

  • Unicode Normalize: A simple plugin

    Notepad++ & Plugin Development
    3
    4 Votes
    3 Posts
    169 Views
    CoisesC

    @guy038:

    You’ve given me something to consider.

    It had not occurred to me that converting to “normalization form composed” could decompose a fully pre-composed character. I see now that the specification does describe how that can happen. It just wasn’t intuitive that it could do that, and I hadn’t read closely enough. So there are pre-composed characters that exist, but cannot be synthesized from their components (at least not by these algorithms). Ugh. That’s going to mess with something else I’m trying to build.

    I’m not sure how useful any of this is — I threw it together when I was investigating some oddities with Korean text display. I wanted a fast way to convert between decomposed and composed forms so I could try to figure out what was happening.

    I will see if I can find a reasonable way to show all normalization forms. I entered your request as Issue #1, so hopefully I won’t forget about it.

    Showing the Unicode code points, as well as the UTF-16 and UTF-8 code units, for a character or a selection of characters is another thing I would like to do. If I do it, I think I’m more likely to put that in a new, different plugin that would use a docking panel; I could perhaps include the encodings for the canonical forms in the same display.

  • XBrackets Lite v2.0 has been released!

    Notepad++ & Plugin Development
    3
    3 Votes
    3 Posts
    2k Views
    Vitalii DovganV

    XBrackets Lite v2.0.2

    Glory to Ukraine! Glory to the heroes! fixed: XBrackets could append a trailing NUL to “XBrackets_UserConfig.json”

    https://github.com/d0vgan/npp-XBracketsLite/releases/tag/XBrackets_v202

  • 1 Votes
    8 Posts
    202 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. :-)

  • 0 Votes
    4 Posts
    76 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.

  • 0 Votes
    3 Posts
    110 Views
    László BotkaL

    Thank you, your help was very useful and effective.

  • 0 Votes
    2 Posts
    139 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.

  • 0 Votes
    3 Posts
    75 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.

  • "New UI" for NPP here

    General Discussion
    5
    -2 Votes
    5 Posts
    254 Views
    G

    @PeterJones

    If you have compare plugin installed you can use it, compare english.xml with english_customizable.xml I provided and you’ll see all differences. Anyway below is explanation of couple of them (ones that you didn’t mention).

    Ps. you probably know this but you can make context menu and tab context menu work in both localizations by referring to items by their IDs instead of their names. IDs can be found with NPPUISpy plugin or by reading english.xml localization file.

    renamed “Window” menu as Tabs as to my observations items inside are tabs, not windows.

    “containing folder”. I have not heard this term used anywhere else than NPP. Most common name for showing file folder in explorer is “Show In Explorer”, sometimes also “Open in Explorer”. IMO in this context “current folder” is more intuitive.

    “close multiple documents” --> “close multiple tabs”. How often people use NPP to edit “documents” ? For me I edit mainly script or programming source code, txt, ini, xml files, etc… Document gives completely wrong impression (in my opinion) so tab is a better term.

    “edit - insert”–>“edit - insert date, time”. If you use the program seldom you will not remember what sort of insert options there are inside so better to have more descriptive menu item name.

    “Convert case to”–>“Case”, “Line Operations”–>“Line”, “EOL Conversion”–>“EOL”, unneeded words cluttering UI

    “Auto-Completion”–>“Auto-Complete”, latter is de-facto term used for this feature

    “View - View current file in”–>“View - Open with”, Open with is more common way to describe this feature

    “Encoding - Character Set”–>“Encoding - Non-English Encoding”. Character set is pretty ambigous name but this submenu contains only encoding related to non-english languages so I thought this name would be more descriptive.

    “Language - User Defined Language”–>“Language - UDL Settings”. IMO things related to UDL were maybe most confusing and illogical part of NPP UI. So I did a lot of changes there.

    “Reload from Disk”–>“Reload”. Usually it is called just Reload or Refresh

    “Open in default viewer”–>“Open in default program”

    “Folder as Workspace”–>“Workspace - Panel”

    “Synchronize Horizontal Scrolling”–>“Sync Horizontal”

    “Focus on Another View”–>“Focus on Other View”

    “Open User Defined Language folder…”–>“Open userDefineLangs Folder…”

    “Notepad++ Online User Manual”–>“USER MANUAL”

    “Run…”–>“Open External Program…”

    “Close - Close All BUT This”–>“Close - Other Tabs”

    Close - Close All to the Left"–>“Close - Left”

    “Find in Files”–>“Search in Multiple Files”. This was especially confusing. I had no idea what Find in Files would mean but Search in Multiple Files is pretty self explanatory.

  • 0 Votes
    3 Posts
    177 Views
    Revs DeeR

    @PeterJones
    Thank you, that was useful :) I’ve updated shortcuts.xml so Alt+F6 now ignores selected text.

    <Command name="Open new instance" Ctrl="no" Alt="yes" Shift="no" Key="117">$(NPP_FULL_FILE_PATH) -nosession -multiInst</Command> <Command name="Open selected file path in new instance" Ctrl="no" Alt="no" Shift="no" Key="">$(NPP_FULL_FILE_PATH) $(CURRENT_WORD) -nosession -multiInst</Command>

    da188c0f-2184-4898-ae3a-b65a5ba09cf8-image.png

    I hadn’t taken a moment before posting to find what Alt+F6 was labelled as. I’ve been using this command via the keyboard shortcut for a long time and not via the Run menu.

    For basic users, I think it could be useful to have this as an out of the box option e.g. File > New Window (Ctrl+Shift+N).

    Thanks again!

  • Change of the selection mode

    General Discussion
    2
    1 Votes
    2 Posts
    87 Views
    PeterJonesP

    @guy038 said in Change of the selection mode:

    Open the search dialog ( Ctrl + F )

    I just tried that. Then I tried doing just a Ctrl+A to select all the text more simply, and the Alt+Shift+UpArrow trick still worked to turn that stream into a zero-width column. That’s actually useful, as I often like getting a column at the beginning of the line. (It’s useful for going the other way – using the column editor to insert the line numbering.)

    But be warned: if the final line of the file doesn’t have a newline, then my method will end up selecting a rectangle from the end of the last line to the beginning of the first line:
    5380904c-9ee6-4c11-a985-d3ba42f4f6c9-image.png
    The regex version avoids that by making sure it only selects lines that end with a newline.

    This usually won’t be a problem for me, since I usually have a newline at the end of my file. I’ve just created a macro of the Ctrl+A then Alt+Shift+UpArrow sequence, and assigned a shortcut. It might just enter my standard workflow. So thanks, @guy038.

    Actually, I just found another difference. @guy038’s regex vesion will only select a “paragraph” worth, since it will stop at the first blank line. So if you have

    intro 1. blah 2. blah 10. blah ending

    If your cursor is on intro or the line after, the regex will select the list. But if you’re on line 1. blah, then it will only select 2 and 10. And if you’re on the last line of the list, then it will actually select the ending paragraph.

    So it depends on what quirks you want, and whether you want “paragraph” or “whole document”, whether you should record the macro with my Ctrl+A or @guy038’s regex, or a slightly modified regex to match your most common use case(s). Since macros record searches, any of those could be made into a macro for a single-keystroke for what you want.

  • 0 Votes
    3 Posts
    114 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.

  • 0 Votes
    5 Posts
    100 Views
    Vitalii DovganV

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

  • Notepad++ DLL Hijacking Vulnerability (CVE-2025-56383)

    Security
    10