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
    • donhoD

      Notepad++ v8.8.7 Release Candidate

      Watching Ignoring Scheduled Pinned Locked Moved Announcements
      21
      6 Votes
      21 Posts
      3k Views
      donhoD

      @xomx
      Well spotted!

      With the signtool, I passed the argument /as to signed with both the first certif and the 2nd one - that makes the duplication signature on binaries when the script runs morn than 1 time.

      I just fixed the script to pass /a to sign with the first certif and /as with the 2nd one.

      More info:

      /a Select the best signing cert automatically. SignTool will find all valid certs that satisfy all specified conditions and select the one that is valid for the longest. If this option is not present, SignTool will expect to find only one valid signing cert. /as Append this signature. If no primary signature is present, this signature will be made the primary signature instead.

      The explanation is not explicite for /a. In my experience, usage of this parameter removes all the signatures before signing with the certificate.

      The problem of signature duplication is fixed in RC2:
      https://download.notepad-plus-plus.org/repository/8.x/8.8.7.RC2/

      edit: with some tests, it turns out that the argument /a does nothing for the first signing - without /a it still removes all signatures before signing.

    • CoisesC

      Compose for Notepad++ (another experimental plugin)

      Watching Ignoring Scheduled Pinned Locked Moved Notepad++ & Plugin Development
      15
      7 Votes
      15 Posts
      631 Views
      PeterJonesP

      @Coises ,

      I think with v1.1, it’s a reasonable compromise between what would be ideal and what is practical. Thank you.

    • Ragnar LodbrokR

      I need a function/plugin to extract only unnecessary text from lines

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      15
      0 Votes
      15 Posts
      653 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.

    • Kim S. AndreasenK

      N++ opens ANSI file incorrectly in Win11 - why?

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      12
      2 Votes
      12 Posts
      553 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!

    • S

      Style Configurations Reset After Update

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      10
      0 Votes
      10 Posts
      287 Views
      PeterJonesP

      @subodhjaiswar said in Style Configurations Reset After Update:

      @PeterJones

      When my IT admin gave me my laptop with my ID(Domain) configured as part of local administrator group, I just simply install NP++ by downloading from Chrome.

      Being part of the administrator group does not force Notepad++ to run in Admin mode. I have always been part of the administrator group, both on my personal PCs and on my work machines. I do not run Notepad++ as administrator.

      Then I launched from desktop, or Start–>N+±-> Enter

      Did you look at those shortcuts, as I explained?

      Then I pinned NP++ and every time my laptop restart I launch NP++ from taskbar

      Did you look at that shortcut, as I explained?

      Since my TP is a single user and no other user I am not sure how to run NP++ with No Admin

      I gave you detailed instructions on how to look for the “Run this program as an administrator” checkbox, both for shortcuts and for the notepad++.exe executable. You have to find the ones that are checked, and uncheckmark them

      Please advise on how do I retain my style settings.

      The instructions already given told you the first step. If you ignore the first step, you cannot hope to fix your problem.

    • SuperCPUS

      How to set a different background color for the text before a certain line?

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      9
      0 Votes
      9 Posts
      286 Views
      mpheathM

      @SuperCPU

      Do you have a solution for changing the background color for the lines after keyword “ENDCODE” too?

      A solution requires planning and development though only STARTCODE was previously mentioned. Now may need to revise the solution to what satisfies the new requirement. Indicators cannot do the entire width of the window though styles can do EOL filled styling.

      A UDL might be adequate with a little styling enhancement with LuaScript.

      Define a new UDL from menu Language -> User Defined Language -> Define your language... Set Default style backgroud to grey. Need to click styler button to access the styler dialog. Go to delimiters tab and for style 1 set Open as STARTCODE and Close as ENDCODE. Optionally. Click styler button and set background to a preferred color or set as transparent. Save UDL with a name.

      The lua script:

      local function EnhanceDoc() -- Enhance UDL with STARTCODE. if editor.LexerLanguage == 'user' then local start_pos = editor:findtext('^STARTCODE$', SCFIND_REGEXP | SCFIND_MATCHCASE) if start_pos then -- Style 0. local bg0 = editor.StyleBack[0] editor.StyleEOLFilled[0] = true -- Style 16: Delimiter 1. editor.StyleEOLFilled[16] = true -- Style 24: Terminator. editor.StyleBack[24] = bg0 editor.StyleEOLFilled[24] = true end end end npp.AddEventHandler('OnReady', function() EnhanceDoc() npp.AddEventHandler('OnSwitchFile', EnhanceDoc) end)

      May need to restart Notepad++ after setup of the UDL and the Lua code. Once the editor is ready and the document is active, then set the language to the UDL.

      Viewed with the default theme:

      startcode2.png

      The Python console shows the Style IDs in red so you know where the 0, 16 and 24 originate from.

      Other scripting plugins should be able to apply styles with similar code.

    • H

      Cannot update portable version -- Windows keeps using old version even though it's deleted

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      9
      0 Votes
      9 Posts
      279 Views
      H

      @Terry-R said in Cannot update portable version -- Windows keeps using old version even though it's deleted:

      @helpdata said in Cannot update portable version -- Windows keeps using old version even though it's deleted:

      Well, you don’t know the reason it changed the default application. It may have been you to make that occur even if you deny that was the case.

      As I said, I REPEATEDLY changed the default app for text files to the I: drive version. I literally navigated again and again to that drive and set that version of the program as default. It did not “take” in Windows, perhaps because the executable had the same name, so Windows decided it’s the same program and did not update. A bug.

      Personally I would just install Notepad++ and then if I needed to maintain version control turn off the auto-updater option as I stated in the previous post.

      I’m considering that, although I do like portable apps. Any more problems and that’s what I’ll do.

      PS your statement of “The I: drive where the portable version has always lived,” is clearly incorrect as has been proven.

      Um, no, it has always been on the I: drive, and the I: drive is backed up to the H: drive. This is definitely a Windows issue. Until recently, Windows did not even allow portable apps to be set as default apps:
      https://learn.microsoft.com/en-us/answers/questions/2795276/is-it-no-longer-possible-to-make-a-portable-progra

      Anyway, thanks for the help.

    • tino tesuT

      v8.8.6 - the function list is not working

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      8
      0 Votes
      8 Posts
      391 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.

    • D

      Find start of line up to specific character, and copy this to end of line.

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · · replace
      8
      1 Votes
      8 Posts
      338 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. :-)

    • Neculai I. FantanaruN

      where exactly can I find the file where the new macro I just saved was saved?

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      7
      0 Votes
      7 Posts
      251 Views
      PeterJonesP

      @john-murphy said in where exactly can I find the file where the new macro I just saved was saved?:

      Also, go to to the search input window and type name:bbb or whatever you named the file if it’s not bbb. Windows will find it. Of course you need to search from a folder that you can reasonable expect to find the file, so that the search doesn’t take too long.

      That has nothing to do with the question asked. You do not name the file that Notepad++ stores macros in. It’s defined internally, and the answers above already explained where to find them.

      I cannot prove you are using generative AI, but it sure feels like it. That is expressly forbidden in this forum. You’ve had two posts like that. If you make a third post that has the same unhelpful pseudo-replies, you will be banned.

    • S

      autoupdater and connection temp.sh

      Watching Ignoring Scheduled Pinned Locked Moved Security
      7
      0 Votes
      7 Posts
      1k Views
      donhoD

      @soft-parsley
      Could you provide your gup.xml file from C:\Program Files\Notepad++\updater\ directory?

    • EkopalypseE

      Weird crash

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      7
      2 Votes
      7 Posts
      271 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 !

    • D

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

      Watching Ignoring Scheduled Pinned Locked Moved Security
      10
      0 Votes
      10 Posts
      1k Views
      donhoD

      https://notepad-plus-plus.org/news/v886-released/

    • donhoD

      Notepad++ release 8.8.7 (signed with a legitimate certificate)

      Watching Ignoring Scheduled Pinned Locked Moved Announcements
      6
      3 Votes
      6 Posts
      3k Views
      Lycan ThropeL

      @donho ,
      And it updated flawlessly. Thank you for getting that smoothed out. When things like that, act up, it gives users the heebee jeebees. :-)

    • donhoD

      Notepad++ v8.8.6 Release

      Watching Ignoring Scheduled Pinned Locked Moved Announcements
      6
      4 Votes
      6 Posts
      3k 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.

    • Julian RedGJ

      After changing to admin mode on windows, a black line appears over selected line

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      7
      0 Votes
      7 Posts
      379 Views
      Julian RedGJ

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

    • F

      Default LF and not CRLF

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

      @flaviozluca said in Default LF and not CRLF:

      Thanks but in short, so I cant change the default always to default LF?

      In short, your statement is 100% wrong.

      Notepad++ does save the default for new files, as I described above, in detail. Since you don’t seem to want to read that, I will shorten it for you: Open exactly one instance of Notepad++ (no more, no less). Set Settings > Preferences > New Document > Format (Line Ending) to Unix (LF). Exit Notepad++. Then the next time you start Notepad++, all new files you create will use that line ending.

      This obviously doesn’t change the line endings on existing files – existing files are saved with the bytes for either CRLF or LF already. If you open a file that’s already saved with CRLF, you can change the line endings with the Edit > EOL Conversion … sub-menu actions, or by right-clicking on the line-ending indicator on the status bar.

    • Drake_M__D

      Marking Sing Letters In a Document To Clear

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      5
      0 Votes
      5 Posts
      86 Views
      Drake_M__D

      @Terry-R

      Your second option \sR(\s|$) worked like a charm.

      Thanks so much for the insight - huge help!

    • caramadraC

      Pasting columns into txt from xlsx

      Watching Ignoring Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
      5
      0 Votes
      5 Posts
      273 Views
      James Burke 0J

      Depending the content, you could open the xls file in LibreOffice (or Open Office) and save it as an html file. It won’t be picture-perfect, but it will be in columns.

    • Joe WiltonJ

      UDL - combining C++ folding and Nasal highlighting

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion
      5
      0 Votes
      5 Posts
      183 Views
      PeterJonesP

      @Joe-Wilton,

      Obviously there is some interaction between the characters in the Operators 1 list and the Folding in Code 1 and 2 styles.

      The intention for UDL is that no given token (symbol or word) is found in two separate fields: they are supposed to be unique, because you cannot style a token both as an Operator and as a Folding-In-Code, as the two are mutually exclusive. There is an internal order they are processed, but that order is not guaranteed (a few versions back, Notepad++ actually changed the order of a couple of the fields, which broke some UDL that were relying on the old order of processing to handle conflicts in their definitions). If you make the UDL without conflicts, you won’t have problems if Notepad++ changes the internals again.

      (By “no given token … is found”, I mean “is found alone”. For example, you could have a fold-open2 of { and an operator of {{ – if it finds double-brace, it will render it as an operator, but a single-brace will be a fold-open2.)