Community
    • Login
    1. Home
    2. Popular
    Log in to post
    • All Time
    • Day
    • Week
    • Month
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics
    • All categories
    • S

      autoupdater and connection temp.sh

      Watching Ignoring Scheduled Pinned Locked Moved Security
      37
      0 Votes
      37 Posts
      18k Views
      PeterJonesP

      @Martin-1 said in autoupdater and connection temp.sh:

      @PeterJones That is what i meant. I don’t understand what is being said in those links or what is being said above. hence the repeat of my questions.

      Then ask for clarification, rather than ask the same thing over and over.

      Besides, the https://notepad-plus-plus.org/news/clarification-security-incident/ link that @donho most recently posted seems pretty clear to me:

      Who Was Targeted?

      This was a highly selective attack by a state-sponsored group targeting specific high-value organizations. Security researchers confirmed that the vast majority of Notepad++ users were never affected - attackers filtered victims based on strategic value, not random distribution.

      For most users: Simply updating to the latest version is sufficient.

      If you are a member of a a high-value organization, then you need to find someone on your IT team who does understand all the technical details. (If you are unsure whether your organization would be considered “high value”, then it wouldn’t be.) If you are not, then you are part of the “for most users” group. And those instructions seem quite clear to me: manually update to v8.9.1.

    • Thorsten HeuerT

      Feature Request / Question: Soft Wrap at Vertical Edge (Column 80) regardless of window size

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      15
      1 Votes
      15 Posts
      487 Views
      Alan KilbornA

      @PeterJones said:

      I wish I knew of a notification that was better suited to just-on-resize

      Hook the message loop and look for WM_SIZE messages?

    • donhoD

      Notepad++ v8.9.1 Release

      Watching Ignoring Scheduled Pinned Locked Moved Announcements
      9
      6 Votes
      9 Posts
      7k Views
      PeterJonesP

      @mpheath said in Notepad++ v8.9.1 Release:

      I am unsure what you fixed.

      @mpheath, the user had outdated themes, which didn’t have the KEY style for either Langage:INI or Language:Properties. When v8.9.1 brought in all those style entries for the INI and Properties lexers, it began properly formatting those styles rather than ignoring those styles that weren’t defined in the themes. This was the intention of the new style-updating feature: it is intended to bring all themes up-to-date, so that they can format all the styles that users have not been seeing for years (for some, it’s a decade or more of missing syntax highlighting).

      @Drift91: As with all styles, if you don’t like the formatting that is chosen by default for a given style, you are free to change it for yourself. You go to Settings > Style Configurator > Language: INI or Language: Properties, select Style: KEY and change the Italic checkbox, as shown here for INI: 4b2d19b9-b707-4bc0-a668-3b1acb7041c8-image.png

    • Mark BoonieM

      Show (or keep) subsets of a file

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      6
      0 Votes
      6 Posts
      56 Views
      Mark BoonieM

      I think what you provided should work – the syntax “<xxx>” means that I would replace that string with the specific string I was interested in, because at different times I’d be searching for different strings.

      However, I just tried your search string with two different substitutions without success. So, let’s look at simple example. Start with this file:

      *Block start 00000000013FC200 00200280 00010000 00000000 00000000 00000000013FC210 00000002 CC5CDDA0 00000000 00000000 *Block end Extra stuff *Block start 00000000013FC200 00200280 00010000 00000000 00000000 00000000013FC210 00000002 CC5CDDA0 00000000 00000000 00000000013FC220 00000000 00000000 01266100 01266100 00000000013FC230 00808000 013FC2B8 00000000 00000000 *Block end *Block start 00000000013FC200 00200280 00020000 00000000 00000000 00000000013FC210 00000002 CC5CDDA0 00000000 00000000 00000000013FC220 00000000 00000000 01266100 01266100 00000000013FC230 00808000 013FC2B8 00000000 00000000 *Block end *Block start 00000000013FC200 00200280 00030000 00000000 00000000 00000000013FC210 00000002 CC5CDDA0 00000000 00000000 00000000013FC220 00000000 00000000 01266100 01266100 00000000013FC230 00808000 013FC2B8 00000000 00000000 *Block end Extra stuff *Block start 00000000013FC200 00200280 00010000 00000000 00000000 *Block end

      In this case, the blocks that I want to find are those that contain “80 00010000”. This target occurs in blocks 1, 2, and 5. The string I’m searching for is:

      (?s)^*Block start((?!*BLOCK start).)+?80 00010000.+?^*Block end\R(*SKIP)(*F)|(?-s)^.*\R

      But when I fill out the Replace dialog box and select Replace All, I get an error that the regular expression is invalid. I don’t use regular expressions so I’m not sure what the errors are, but I suspect it has to do with the asterisks specified in the start and end strings. I found that they need to be escaped with ‘’ , resulting in:

      (?s)^\*Block start((?!\*BLOCK start).)+?80 00010000.+?^\*Block end\R(*SKIP)(*F)|(?-s)^.*\R

      This gave me a message that 36 occurrences were replaced, but the only thing I was left with was a single line containing “*Block end”. Are there other modifications to the search string that I need to make?

    • Troglo37T

      Is There a Way to Prevent Pasted Text from Spreading Out with Rows of Spaces?

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      5
      0 Votes
      5 Posts
      151 Views
      PeterJonesP

      @PeterJones said in Is There a Way to Prevent Pasted Text from Spreading Out with Rows of Spaces?:

      implementing it in PythonScript today

      Thankfully, I found an old script which did something related, which was easy to update.

      # encoding=utf-8 """in response to https://community.notepad-plus-plus.org/topic/27385/ This will paste the CF_TEXT plaintext from the clipboard, but will convert any series of newline characters into a single space before doing the paste. Because this uses .insertText() instead of putting the modified text back into the clipboard and doing .paste(), it should avoid clobbering the clipboard. (based on @alan-kilborn's clipboard script here: <https://community.notepad-plus-plus.org/post/97132>) """ from Npp import * try: editor3h # third editor, hidden except NameError: editor3h = notepad.createScintilla() def get_clipboard_text_without_newlines(): retval = '' editor3h.clearAll() editor3h.paste() if editor3h.getLength() > 0: editor3h.rereplace(r'[\r\n]+', ' ') # replace all newline seqeuences with a single space retval = editor3h.getText() return retval editor.beginUndoAction() editor.insertText(editor.getCurrentPos(), get_clipboard_text_without_newlines()) editor.endUndoAction()

      This has been tested in the PythonScript 3 plugin. The PythonScript FAQ explains how to install PythonScript plugin, and how to run a script using PythonScript plugin, and even how to assign a keyboard shortcut to the script. Make sure you follow the instructions for PythonScript 3, not PythonScript 2 (as I have not tested under the older plugin syntax, though it will likely work there)

    • Cam KroutC

      Chinese compromise began as early as NP++ v8.6.9

      Watching Ignoring Scheduled Pinned Locked Moved Security
      4
      0 Votes
      4 Posts
      490 Views
      PeterJonesP

      Future readers: if you want more information for the context of this discussion, See the FAQ, which has the best summary I can make, as of 2026-Feb-04; if new information is available, the FAQ will be updated. ALL followups/discussions must go in Topic: autoupdater and connection to temp.sh. This tangent is LOCKED.

    • NppenjoyrN

      Advices to prevent further security vulnerabilities

      Watching Ignoring Scheduled Pinned Locked Moved Security
      4
      0 Votes
      4 Posts
      437 Views
      NppenjoyrN

      BTW:

      5.1-if your home internet speed is fast enough, setup your own web server to your pc under virtualbox(in case of web server software cve’s/rce’s). I or anyone can help with that. Dont forget to hardening server for security.

      IMO, this is BAD advice. To suggest to a non-security specialist who runs this as a hobby, that he should self-host, and try to keep up on all the security hardening, is asking him to get hacked even worse than the hack that already happened. He was literally paying a host to provide such services, and the professionals failed; he has now changed providers to a host who has better security procedures.

      Believe me it’s not that hard to setup a webserver or harden it, especially while backed by a strong community. The risks are different when hosting at home between hosting remotely. The hosting firm may be offered money to hijack, or an out-of-date hosting management software had rce was waiting to be abused.

    • S

      Managing the User Languages tool

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      4
      0 Votes
      4 Posts
      99 Views
      PeterJonesP

      @sagradamoly-stack said in Managing the User Languages tool:

      Is there any way to delete all the interim variations without losing all the work getting to a useful final result?

      It depends on what you mean.

      En masse? No

      One at a time? Yes. In the UDL dialog, select each intermediate UDL from the drop-down, and click Remove. Since it’s likely on the order of a dozen or two, it won’t take you that long – less time than asking here took you, I’d wager.

      without losing all the work

      I mean, deleting the intermediate ones will obviously delete the intermediate stages. If you don’t want to lose them, but don’t want them in the N++ Language menu, use Export to save each to a separate XML file which you can then save in some backup directory, then Remove to take it out of the menu.

    • N

      The real haters can't hate

      Watching Ignoring Scheduled Pinned Locked Moved Boycott Notepad++
      9
      0 Votes
      9 Posts
      2k Views
      PeterJonesP

      @shodanx2 ,

      I normally stay out of the “Boycott” discussions, because they’re a complete waste of time (as is this one, for example, so I’ll be leaving this one again), but it seems really odd that you just started complaining about this a year after you successfully created your account and made your first post. But whatever, the haters are going to hate. (update: never mind, you were whining about this a year ago, too.)

      If the owners of the forum software and the service that they are donating to host our forum (they normally charge people and organizations to host with them, but are giving the hosting for free to us, so beggars cannot be choosers), or the contributors to their ecosystem (not me, not the developer of Notepad++) ever provide a plugin that allowed a “login with XYZ” for any other OAUTH provider, I would enable that in a heartbeat, because I’m all for giving users a choice. I cannot speak for the rest of the internet, but the email-only didn’t work here, despite your repeated protestations, for whatever reason, so I’ve tried to help give users as much choice from OAUTH providers as possible; unfortunately, those are the only two for now.

      Our choice of login has nothing to do with censoring people from speaking (as should be blatantly obvious, because we literally provide a topic for whining about Notepad++ in a forum dedicated to advocating for and helping people use Notepad++ … the N++ developer is highly into free speech), nor “shilling for the techbro cloud elites”, and everything to do with trying to make the user experience as good as possible for as many as we can.

    • PeterJonesP

      FAQ: February Security Announcement

      Watching Ignoring Scheduled Pinned until 3/1/26, 9:17 PM Locked Moved Security
      3
      2 Votes
      3 Posts
      322 Views
      PeterJonesP
      Clarification

      Since people still don’t seem to get it, despite all these, I will try to boil it down more.

      This was not some wide net, where they were trying to attack as many as they could. It was highly targeted, with only a very small number of targets.

      Are you a member of a high-value organization that might reasonably be targeted by a nation-state?

      If you know you are, then you need to have your IT follow the technical links from above, because they will be able to understand the “indicators of compromise”

      If you are unsure if you are a member of such a team, you probably are not. But the following can help you clarify:

      Is the team you are a part of outspoken in its criticism or opposition to one or more aggressive nation-states, especially if it’s mentioned in the announcements? Are you an individual user who is outspoken in your criticism or opposition to one or more aggressive nation-states, especially if it’s mentioned in the announcements?

      If your answer to either of those is NO, then you are not a member of a high-value organization.

      If you are not a member of a high-value organization

      The next steps are easy: run a virus/malware scanner, then install v8.9.1 from official sources, as described in How do I clean up, above.

      Short Version: Don’t Overthink This

      If you or your team is outspoken against the nation-state mentioned, or you know that your team is a high-value organization to such a nation-state, find the person on your team who is the IT security expert, and have them look for the indicators of compromise. If you are uncertain, then you almost certainly weren’t the target; but if you have an IT department, they can still look for indicators of compromise.

      Either way, the next steps are the same: run a virus/malware scanner, then manually install the newest version, and you will be safe going forward.

    • Nazar HotsaN

      Strange highlighting in PHP files

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      3
      0 Votes
      3 Posts
      146 Views
      Nazar HotsaN

      Thank you! Problem solved.

    • M

      I am very confused about the Notepad++ security issue

      Watching Ignoring Scheduled Pinned Locked Moved Security
      3
      0 Votes
      3 Posts
      164 Views
      PeterJonesP

      See the FAQ, which has the best summary I can make, as of 2026-Feb-04; if new information is available, the FAQ will be updated. ALL followups/discussions must go in Topic: autoupdater and connection to temp.sh. This tangent is LOCKED.

    • Naveen RathnamN

      Were the binaries released on GitHub affected in the Notepad++ state-sponsored hacking incident?

      Watching Ignoring Scheduled Pinned Locked Moved Security
      3
      1 Votes
      3 Posts
      170 Views
      PeterJonesP

      See the FAQ, which has the best summary I can make, as of 2026-Feb-04; if new information is available, the FAQ will be updated. ALL followups/discussions must go in Topic: autoupdater and connection to temp.sh. This tangent is LOCKED.

    • A

      Tab bar tab width

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      3
      0 Votes
      3 Posts
      105 Views
      A

      @PeterJones
      on the screenshot above Reduce option is already pressed though.
      Max tab label length truncates text, which is not the behavior i want to restore - i want the tabs with short names to not have this big gap at the end.

      That said, it seems that the “enable pin tab feature” was the culprit, as disabling it seems to have restored the desired tab size behavior.

      There still is some extra spacing before the close button though:

      2bb5dad1-4a85-4bd0-8df8-768e93562693-image.png
      629bde33-102c-4a09-a960-60ded9dcd809-image.png

    • D. KirkpatrickD

      "Run" add-on for Run in Browser

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      5
      0 Votes
      5 Posts
      245 Views
      D. KirkpatrickD

      @PeterJones Thanks. I will work on getting the debug. Until then…

      After making the edit, which took by the way (saved), I closed the app as usual. Just to be sure I checked Task Manager and found 2 instances of it showing there even though all copies were previously closed by me. I killed it there, unmounted the thumb drive that has the portable version I’m trying to edit, and then did a system restart thinking that might clear anything else.

      I remounted the thumb drive and still have an edited Shortcuts file but it is not recognizing the changes. That edit is working with my resident copy on the same system but that was also hard to change when I did it a while back.

      Thanks for the help.

    • Magic MugsM

      Session migration

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      2
      0 Votes
      2 Posts
      38 Views
      PeterJonesP

      @Magic-Mugs ,

      Assuming all your open files are real files, and all in the exact same folders on old and new machine, then just copy over %AppData%\Notepad++\session.xml

      If some of your files are the unsaved new # tabs, you will also need to copy over everything in %AppData%\Notepad++\backup\

      But if you want all the same settings from your old to your new, just copy over everything from %AppData%\Notepad++\

    • N

      Plugin Manager v8.9.1 has ghosted us

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      2
      0 Votes
      2 Posts
      53 Views
      PeterJonesP

      @nikkinisly ,

      The thing truly named “Plugin Manager” was last compatible with Notepad++ in v7.5.9 from October 2019. Had you really not updated since then?

      Or are you talking about Plugins Admin? That’s the builtin replacement since v7.6 in November 2019

      And it’s still in v8.9.1:
      0e15144b-967e-42d8-a505-a19330607d00-image.png

      My guess is that you deleted gup.exe and/or other of the content in the updater folder, or the plugin list DLL. To find out:

      Exit Notepad++ Perform steps 1-3 for each of the following files List of files C:\Program Files\Notepad++\notepad++.exe C:\Program Files\Notepad++\plugins\Config\nppPluginList.dll C:\Program Files\Notepad++\updater\GUP.exe C:\Program Files\Notepad++\updater\libcurl.dll If any of those files are missing, you will need to reinstall, making sure to include the auto-updater and Plugins Admin, because all of those files are required for Plugins Admin to work Steps Right click on the file and choose Properties Look to see if it still has the Unblock checkbox If it does, checkmark it, then click Apply / OK

      here is an example of a GUP.exe that still has the mark of the web:
      9baed526-5a1a-4497-a75b-1acdc23f3b85-image.png

      After making sure the Mark of the Web is gone from all those files, then restart Notepad++, and Plugins Admin should be there.

    • Jay SJ

      PythonScript 3.0.24.0 - "PluginsManager:runPluginCommand Exception" dialog with "Access Violation" with one of my scripts.

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · · pythonscript python error scripting access violation plugins
      2
      0 Votes
      2 Posts
      56 Views
      EkopalypseE

      @Jay-S

      I replied here.

    • David BrownD

      Name on donation button is not "Don Ho" -- is this okay?

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      2
      1 Votes
      2 Posts
      224 Views
      shane knappS

      @David-Brown i came here to let you know that my receipt had what appears to be his email address on it (which i’ve blocked out here for privacy):

      2a1a9747-0e42-4d15-80d0-eb4737ffabd4-image.png

      seems legit to me, but i can’t know for sure. :)

    • Ilhan YumerI

      notepad-plus-plus.org should be added to the HSTS preload list

      Watching Ignoring Scheduled Pinned Locked Moved Security hsts domain security
      2
      0 Votes
      2 Posts
      181 Views
      PeterJonesP

      @Ilhan-Yumer ,

      The developer does not read most posts in this Forum. If you would like to suggest such a move to the developer, I would recommend creating a new Issue at GitHub requesting it (https://github.com/notepad-plus-plus/notepad-plus-plus/issues).