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

    Thank you, your help was very useful and effective.

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

  • "New UI" for NPP here

    General Discussion
    5
    -2 Votes
    5 Posts
    526 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
    301 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
    250 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
    219 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
    318 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
  • 0 Votes
    7 Posts
    420 Views
    Julian RedGJ

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

  • 1 Votes
    4 Posts
    228 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.

  • New plugin: VirtualFolders

    Notepad++ & Plugin Development
    3
    1 Votes
    3 Posts
    305 Views
    Fatih CoşkunF

    @PeterJones,

    As I see it you can only add actual files from the disk to the projects in Project Panel. In VirtualFolders “files” can be just buffers you created in Notepad++. They don’t have to be saved. Most of my buffers are not saved . They are just notes.

    Also you are right new files (saved or unsaved) automatically added in this panel. When you close it, it is automatically removed. Just like in Document List.

  • 0 Votes
    6 Posts
    460 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.

  • 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

  • Notepad++ v8.8.6 Release Candidate

    Announcements
    3
    4 Votes
    3 Posts
    1k Views
    Lycan ThropeL

    @donho,
    Or, as in my case, have been busy with IRL work and projects and haven’t had the time yet to torture test the release. Trying to beat the weather for outdoor projects to get finished, so testing hasn’t been a priority lately, sorry. :-)

  • 0 Votes
    4 Posts
    302 Views
    Mister SmittM

    @rdipardo

    This is the perfect option!

  • Alt key interferes with work

    Help wanted · · · – – – · · ·
    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.)

  • notepad++ store version for windows 11?

    General Discussion
    11
    0 Votes
    11 Posts
    8k Views
    PeterJonesP

    @DoktorDemento said in notepad++ store version for windows 11?:

    but is there any chance of a Microsoft Store listing for N++?

    Essentially 0% chance. The developer does not want to go through the hoops required for the MS store, regardless of whether they now allow EXE installers or not. He has rejected the suggestion multiple times.

  • Fighting Malicious Ads on Download Pages

    Pinned Locked Security
    44
    3 Votes
    44 Posts
    37k Views
    PeterJonesP

    @MarcCMcC said in Fighting Malicious Ads on Download Pages:

    There are definitely still giant, green “Download” button ads:

    Posting screenshots here isn’t helpful, at this point.

    And it is better if you just email the malicious links directly to don.h@free.fr , as has been said repeatedly in this discussion.

    I am locking this thread, as there isn’t anything new to say about this topic

    If you came here to report a malicious/dangerous download link (and NOTE: not all ads with “download” are malicious or dangerous), then

    e-mail the URLs for malicious or dangerous advertising links on that page directly to don.h@free.fr
  • 0 Votes
    5 Posts
    272 Views
    Franz-Josef BadeF

    @PeterJones
    Again, thanks a lot and good luck/success for your further work.
    Ps. Do you know perhaps an old program “VEDIT”? I worked with it for some decennies ;-) , but …

  • 2 Votes
    12 Posts
    682 Views
    Kim S. AndreasenK

    @Coises
    Thanks, but I am pretty sure that I have tried that without success,
    Perhaps the reason it didn’t work is that I probably had the ‘Use Unicode UTF-8 for worldwide language support’ checked, which according to @Peter Jones would invalidate the solution.

    Thanks a lot to both of you for valuable and knowledgeable support!