• 15sec freeze with word wrap

    General Discussion
    2
    0 Votes
    2 Posts
    118 Views
    PeterJonesP

    @Cheok-SC said in 15sec freeze with word wrap:

    Is Word Wrap really that heavy of a performance cost?

    Yes.

    There’s a reason that Settings > Preferences > Performance automatically deactivates word-wrap for large files, when all the other performance issues start with the checkboxes off, so you have to decide to also deactivate other features for large files. Word wrap and syntax highlighting are the two biggest performance costs, because they involve processing the entire file

  • JSON String Escape / Unescape

    Notepad++ & Plugin Development
    12
    0 Votes
    12 Posts
    20k Views
    Alexander VerbitskyA

    @Ilia-Nenashev said in JSON String Escape / Unescape:

    Such possibility I have found only in https://github.com/RolandTaverner/npp-json-escape-unescape-plugin but there is some risk of installing compiled plugin from outside of community.

    Well, I’m (the author of the npp-json-escape-unescape-plugin) not that far outside the community. Also, I’ve finally fixed the plugin solution so anyone can build it from source (see the instructions in the README).

  • Weird crash

    General Discussion
    7
    2 Votes
    7 Posts
    335 Views
    N

    @Ekopalypse

    I recompiled with your code modification and I can’t crash Notepad++ anymore ! :)

    So I can confirm your modification fixes the issue on my side. Thank you !

  • Notepad++ v8.8.6 Release

    Announcements
    6
    4 Votes
    6 Posts
    4k Views
    donhoD

    @xomx

    is it there a Notepad++ Inc. or LLC now?

    LOL.
    I have been struggling with administrative hurdles & certificate companies over the past few months to make it happen. In short: I had to register Notepad++ association (which has existed since 2019 to obtain a DigiCert certificate) with INSEE, a French government agency, Then I had to change the association old postal address to the new one so the certificate company could verify the authenticity of association via mail.

    As a result, it’s possible to obtain a certificate under the open-source project’s name - on the condition that a NGO with the same name is created, and registered in the country where the project maintainer resides. This way, the project is recognized as a business entity by the certificate company, allowing them to issue a certificate to the entity. Nonetheless, Notepad++ still retains its community-driven, non-profit status.

    There’s another path that avoids this painful process. Over the past few months, I recieved an offer from Azure Trusted Signing to have “Notepad++” named certificate signed via GitHub actions.

    If it works, it would be great for nppPluginList to be released independently - so it can follow its own release circle, separate from Notepad++'s. Notepad++ could then update nppPluginList via WinGUp.
    However, there is an unsolved login issue, and I’m still waiting for their team to fix it.

  • 0 Votes
    15 Posts
    762 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.

  • Notepad++ Azerbaijani translation (8.7.3)

    Translation
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • NppExec v0.8.10 has been released!

    Notepad++ & Plugin Development
    1
    5 Votes
    1 Posts
    199 Views
    No one has replied
  • 3 Votes
    1 Posts
    192 Views
    No one has replied
  • 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
    511 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.

  • 1 Votes
    8 Posts
    382 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
    3 Posts
    193 Views
    László BotkaL

    Thank you, your help was very useful and effective.

  • 0 Votes
    2 Posts
    298 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
    499 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
    291 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
    216 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
    207 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
    256 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
  • WebEdit Plugin for NPP x64 ?

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