• 2 Votes
    22 Posts
    3k Views
    Alan KilbornA

    @mkupper said:

    I discovered that the Find field is limited to 2046 characters.

    It looks like in the next release of Notepad++ this is going to get bumped up to around 16384 characters. See https://github.com/notepad-plus-plus/notepad-plus-plus/pull/16855 for details.

  • Certificate install location

    Security
    2
    0 Votes
    2 Posts
    3k Views
    PeterJonesP

    @Dave-Teetz said in Certificate install location:

    Page /news/v883-self-signed-certificate/ install for LocalMachine.

    Page dics/getting-started/#notepad-self-signed-certificate-authority-for-binaries says “If you accidentally picked Local Machine…”

    These appear to be conflicting instructions.

    It will actually work in either.

    When I wrote the original instructions, I picked Current User, because, from a security standpoint, it’s always better to pick the most-restrictive location – that way, my choices (like adding a new certificate to the trust system) will only affect me, rather than affecting everyone who uses the same computer. On most PCs, where there is only one user anyway, it completely does not matter.

    When Don wrote the instructions in the “news” page, he for some reason decided to recommend Local Machine instead of Current User: I don’t know why he did that, nor do I agree with it.

    But regardless, the phrasing in the User Manual is correct, because what the UM is really pointing out with the “accidentally picked” is that if you installed it in Location A, you have to use the right tool to be able to find it: if you installed it in Current User, you must use certmgr.msc to find it; if you installed it in Local Machine, you must use certlm.msc to find it.

    Maybe I will update the manual to give users the understanding to make the correct choice between Current Userand Local Machine, rather than implying only one way is right that one way was only “accidental”.

    update: the User Manual has been updated; it now gives the user the information needed to make the correct choice for their circumstances, but makes sure to enable them to verify or change, whichever choice is made.
    update 2: rephrased my last paragraph before the update, because the final version in the user manual still strongly implies one way is almost-always right, but it gives the decision guidelines for which is better, and still explains how to work with either.

  • how to resize plugin window

    Help wanted · · · – – – · · ·
    2
    0 Votes
    2 Posts
    116 Views
    PeterJonesP

    @ccoreymcmillan said in how to resize plugin window:

    . it wont let me resize the window and i am super green

    It is up to each individual plugin author to decide whether a dialog should be resizeable, and if so to include the code to make it resize. If the plugin author didn’t make it resizeable, there is nothing you or Notepad++ can do to change that. Sorry

    i would include a screenshot but don’t see a file upload or anything

    You can just paste the image in your post.

  • You CAN disable brace highlighting

    General Discussion
    5
    2 Votes
    5 Posts
    534 Views
    Ethan GreerE

    Well, I submitted a feature request. It is here:

    https://github.com/notepad-plus-plus/notepad-plus-plus/issues/16852

    Any feedback or suggested edits or improvements would be greatly appreciated!

  • Close on last tab exit missing in settings

    General Discussion
    3
    1 Votes
    3 Posts
    159 Views
    Erin PhillipsE

    @PeterJones thank you. I completely overlooked this new page in preferences.

  • NotePad++ preview plugin? I can't find it.

    General Discussion
    3
    0 Votes
    3 Posts
    531 Views
    rdipardoR

    @Coises said in NotePad++ preview plugin? I can't find it.:

    It looks as if [Preview HTML] exclusively uses Internet Explorer rendering…

    F.Y.I.

    Preview HTML’s browser host was recently updated to Microsoft Edge.

    preview-html-v1.4-screenshot.png

    You will need Windows 1709 (build 10.0.16299) or a later version to use it. For that reason, I’m not planning to update the Plugin List until some time after consumer editions of Windows 10 pass their EOL date in October.

  • Is there a way to disable brace highlighting?

    General Discussion
    9
    0 Votes
    9 Posts
    322 Views
    Ethan GreerE

    @PeterJones

    Hello again Peter! Thanks for the advice. When I said “hate hate hate” I meant that as more tongue-in-cheek. Maybe that was the wrong foot to put forward first. Sorry if I honked you off. I certainly wouldn’t bring that energy into a feature request.

    Edit: I get what you’re saying about essential features of Notepad++. It seems like if there’s an option to turn off, say, current line highlighting, it would make sense to include an option to turn off brace highlighting. I’m sure it won’t surprise you to know that I disable current line highlighting, for much the same that I want to disable brace highlighting – I find it distracting.

    Anyway, I’ll throw up a feature request, and if it is never implemented, I’ll deal with it. Overall I love Notepad++ very much.

  • 0 Votes
    20 Posts
    34k Views
    C

    Yes, this is annoying but you can put your backup anywhere you want and then create a symbolic link in the hardcoded location that points to your real backup. That is what I did and it works seamlessly. Should be able to update the path but this is a pretty clean workaround.

  • numeri casuali

    Help wanted · · · – – – · · ·
    4
    0 Votes
    4 Posts
    213 Views
    guy038G

    Hello, @stephano-brovelli and All,

    From wikipedia, for example, here is the list of the 20 most common surnames in England, which will be our INPUT text :

    Surname Percentage Smith 1.26 Jones 0.75 Taylor 0.59 Brown 0.56 Williams 0.39 Wilson 0.39 Johnson 0.37 Davies 0.34 Robinson 0.32 Wright 0.32 Thompson 0.31 Evans 0.30 Walker 0.30 White 0.30 Roberts 0.28 Green 0.28 Hall 0.28 Wood 0.27 Jackson 0.27 Clark 0.26

    So, let’s suppose you want to insert, a column of random numbers between the Surname and Percentage existing columns. Follow this road map :

    First, determine the number of rows of your list : in our example we have 20 rows

    After your list, create 20 consecutive empty lines

    Move back to the beginning of these empty lines

    Open the Column editor ( Alt + C )

    Select the Number to Insert option

    Chose 1 for each option and Zeros or Spaces for leading characters

    Select the DEC format

    Click on the OK button

    => Of course, you’ll get this simple list :

    1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

    Move back to the beginning of that list of numbers

    Do a normal selection of the lines ( from line 1 to line 20 )

    Use the Edit > Line Operations > Randomize Line Order option

    => You’ll get, for instance, this kind of OUTPUT :

    9 5 20 18 19 3 7 6 17 8 16 2 14 1 4 15 10 12 11 13

    Move to the first number of this new list, at column 1

    Hold down the Alt and Shift

    Do a zero-width column selection of these 20 numbers, with successive hits on the Down arrow

    Click two times on the Right arrow key, to select the complete numbers

    Click on the Ctrl + C shortcut

    Go to the beginning of your present list

    Put the caret/cursor on the 15th column of the first line Smith

    Click on the Ctrl + V shortcut

    => You should get your expected OUTPUT text, below :

    Surname Percentage Smith 9 1.26 Jones 5 0.75 Taylor 20 0.59 Brown 18 0.56 Williams 19 0.39 Wilson 3 0.39 Johnson 7 0.37 Davies 6 0.34 Robinson 17 0.32 Wright 8 0.32 Thompson 16 0.31 Evans 2 0.30 Walker 14 0.30 White 1 0.30 Roberts 4 0.28 Green 15 0.28 Hall 10 0.28 Wood 12 0.27 Jackson 11 0.27 Clark 13 0.26

    Best Regards,

    guy038

    Ciao, @stefano-brovelli e tutti,

    Da wikipedia, ad esempio, ecco la lista dei 20 cognomi più comuni in Inghilterra, che sarà il nostro testo INPUT :

    Cognome Percentuale Smith 1.26 Jones 0.75 Taylor 0.59 Brown 0.56 Williams 0.39 Wilson 0.39 Johnson 0.37 Davies 0.34 Robinson 0.32 Wright 0.32 Thompson 0.31 Evans 0.30 Walker 0.30 White 0.30 Roberts 0.28 Green 0.28 Hall 0.28 Wood 0.27 Jackson 0.27 Clark 0.26

    Supponiamo quindi di voler inserire una colonna di numeri casuali tra le colonne Cognome e Percentuale esistenti. Seguire questa tabella di marcia:

    Per prima cosa, determinare il numero di riga dell’elenco: nel nostro esempio abbiamo 20 righe

    Dopo l’elenco, creare 20 righe consecutive vuote.

    Tornare all’inizio di queste righe vuote.

    Aprire il Column editor ( Alt + C )

    Selezionare l’opzione Numero da inserire.

    Scegliere 1 per ogni opzione e Zeri o Spazi per i **caratteri di testa

    Selezionare il formato DEC

    Fare clic sul pulsante OK

    => Naturalmente, si otterrà questo semplice elenco:

    1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

    Tornare all’inizio dell’elenco di numeri

    Effettuare una selezione normale delle righe ( dalla riga 1 alla riga 20 )

    Utilizzare l’opzione Modifica > Operazioni di riga > Randomizza ordine righe.

    => Si otterrà, per esempio, questo tipo di OUTPUT :

    9 5 20 18 19 3 7 6 17 8 16 2 14 1 4 15 10 12 11 13

    Passare al primo numero di questo nuovo elenco, alla colonna 1.

    Tenere premuti i tasti Alt e Shift.

    Eseguire una selezione a larghezza zero di colonna di questi 20 numeri, premendo successivamente la freccia Giù.

    Fare clic due volte sul tasto freccia Destra per selezionare i numeri completi.

    Fare clic sulla scorciatoia Ctrl + C

    Andare all’inizio dell’elenco presente

    Posizionare il cursore sulla 15° colonna della prima riga Smith

    Cliccare sulla scorciatoia Ctrl + V

    => Dovreste ottenere il testo aspettato OUTPUT, qui sotto:

    Cognome Percentuale Smith 9 1.26 Jones 5 0.75 Taylor 20 0.59 Brown 18 0.56 Williams 19 0.39 Wilson 3 0.39 Johnson 7 0.37 Davies 6 0.34 Robinson 17 0.32 Wright 8 0.32 Thompson 16 0.31 Evans 2 0.30 Walker 14 0.30 White 1 0.30 Roberts 4 0.28 Green 15 0.28 Hall 10 0.28 Wood 12 0.27 Jackson 11 0.27 Clark 13 0.26

    Cordiali saluti,

    guy038

    Tradotto con DeepL.com (versione gratuita)

  • File empty after opening it as Adminitrator

    Security
    2
    0 Votes
    2 Posts
    1k Views
    PeterJonesP

    @podlipom51-podlipom51 said in File empty after opening it as Adminitrator:

    I was unable to save file. Suggested to open as Administrator after accepting my file is empty. It is very important file for me what to do?

    Where were you trying to save the file? To somewhere in c:\program files\ or c:\windows or similarly protected area? Or were you trying to save to a normal writeable directory on your machine’s local drive? Or a mounted network drive? Because it only suggests Administrator if it gets a “permission denied” error when you try to write the file.

    after accepting my file is empty. It is very important file for me what to do?

    Bummer. Unfortunately, if you already restarted Notepad++, and it didn’t have the Settings > Preferences > Backup set to take “session snapshots and periodic backups”, your unsaved changes were never written to disk anywhere. As soon as Notepad++ exited, those bits were removed from active memory, and were lost. Since the files were likely never written to disk, I doubt that an external file-recovery utility like Recuva would work for you, but you might try directing such at the `c:\users<username>\AppData\Roaming\Notepad++\backup

    See our FAQ on backups for more details about how the Notepad++ backup settings work, how the AutoSave plugin can help improve things, and best-practice suggestions for avoiding data loss in the future.

    Also, I think one of the frequent contributors is actively working on a solution to have Notepad++ be able to get UAC permission for a file-save without needing to restart the application – such a feature would definitely help in your case. Unfortunately, I’ve spent the last few minutes trying to find the Issue or PR where that was being discussed, and haven’t found it yet.

  • Notepad++ v8.8.2 Release

    Announcements
    15
    4 Votes
    15 Posts
    12k Views
    PeterJonesP

    @Craig-Harbison said in Notepad++ v8.8.2 Release:

    I have both 8.8.2 and 8.8.3 versions.
    they both work fine on my Win10 laptop but neither will read or let me edit my json files on my new Win11 laptop.

    Really sucks.

    I can read and edit JSON just fine with both those versions. I doubt it’s a regression, but we can help you investigate what’s going wrong for you if you start a new Topic to discuss it. If it does end up finding a problem with Notepad++, we can then direct you to the right location to inform the developer.

    If you really want help figuring out your problem, please go to the Help Wanted category, click New Topic, and write a detailed post: list your exact steps for how you are trying to read or edit JSON (ie, how you are opening the files, where the files are located, whether on your local drive, a USB drive, a network drive, etc) and what messages or circumstances indicate to you that the JSON file is not being read or edited? Please also go to your ? menu on the right of the Notepad++ menu bar, and click Debug Info, and Copy debug info to clipboard, and paste that in your new topic.

  • update notepad++

    Help wanted · · · – – – · · ·
    12
    0 Votes
    12 Posts
    28k Views
    PeterJonesP

    @lιƒєlιηє-__,

    Just press the question mark (?) button in Notepad++, located near the Windows key,

    The Windows key is a physical thing on the keyboard, the ? menu is a graphical element you can click in the Notepad++ menu bar. How a menu-entry can be “near” a key on your keyboard is completely and totally beyond comprehension.

    If you’re going to bother posting to a topic that had been answered and left dormant years ago, the least you could do is not bring in false information.

    (And the advice to “press the question mark (?) button … and click’Update Notepad++'” had already been given in various forms three years ago. So that added nothing new.)

  • 0 Votes
    52 Posts
    9k Views
    Alan KilbornA

    @Alan-Kilborn said in Running a macro on all the open docs ?.:

    Here’s the PS bug report: …

    The aforementioned bug is fixed in PS release 3.0.23.

  • 2 Votes
    9 Posts
    353 Views
    Alan KilbornA

    @Neil-Schipper said in "Join Lines" with trailing whitespace anomaly, older npp versions:

    I couldn’t see a way to edit the commit msg

    Well, the owner of it would be the only one with the power to edit it.

    or even leave a comment

    Not everything is commentable.

    so I invite a keener to fix it as the task is beyond my weight class

    No one would really want to expend the tedious effort required to fix it (make the links go to the right place). It’s an unfortunate copy/paste result. Perhaps in the future more attention will be paid to it and Notepad++ could be used to replace # with “base url to Scintilla bug list site”.

  • Closing np++ closes program behind it.

    General Discussion
    3
    0 Votes
    3 Posts
    195 Views
  • Digital certificate for open source projects

    Security
    3
    0 Votes
    3 Posts
    3k Views
    xomxX

    @PeterJones said in Digital certificate for open source projects:

    be able to trace that signature to a Certificate Authority in the windows certificate manager store

    IMO - not an option for N++.
    Even the GitHub does not recognize the sign, so I doubt the MS will, moreover the needed x509 cert is a short-lived one (expires immediately?):

    https://docs.sigstore.dev/about/faq/#i-signed-my-commit-with-gitsign-but-it-shows-up-as-unverified-in-my-github-repository-page-why

    The Sigstore CA root is not a part of GitHub’s trust root. Gitsign’s ephemeral keys are only valid for a short time, so using standard x509 verification would consider the certificate invalid after expiration. Verification needs to include validation via the transparency log to verify that the certificate was valid at the time it was used.
  • Read-Only does not work

    Help wanted · · · – – – · · ·
    8
    1 Votes
    8 Posts
    3k Views
    Alan KilbornA

    @Alan-Kilborn said:

    Ideally there would be three options:

    clear readonly (as it now functions) make readonly in Notepad++ (as it now functions – only disallows you from editing in the buffer – file system attribute unaffected) set readonly (currently missing! would set the readonly attribute in the file system as well as disallow editing in N++ buffer)

    In Notepad++ 8.8.2 and later are two “new” checkmarkable choices at the bottom of the Edit menu:

    5886cb49-dc35-4684-a952-f1d43fd6906e-image.png

    I use quotes because they aren’t entirely new; they replace old items whose functionality has been reworked a bit to cover all needs.

    The menu text is fairly self-explanatory for the functionality.

    Really, the only new part of it is that the readonly attribute in the file system can now be set as well as cleared.

    One more bit of newness: When the file system’s readonly attribute is set on a file, its tab icon will appear with an F on it, presumably standing for “File System”. (Truly, it would have been better for the menu text to have been “Read-Only Attribute in File System”…)

    Also, there can be a double level of protection: If Read-Only in Notepad++ is set first, then the Read-Only Attribute in Windows is applied, Read-Only in Notepad++ will be greyed but still checkmarked. Later if Read-Only Attribute in Windows is removed, Read-Only in Notepad++ will again be enforced.

    I’m sure all this and more appears in the user manual, I’m just modernizing an old thread here in case someone reading this is confused by the now outdated info above.

  • 0 Votes
    2 Posts
    130 Views
    PeterJonesP

    @Fern99 ,

    A few years back, I shared a macro here that pasted the clipboard and then adds a newline sequence. I think this is what you want.

  • Notepad++ replacing '!='

    Help wanted · · · – – – · · ·
    6
    1 Votes
    6 Posts
    728 Views
    PeterJonesP

    @Michael-Goessmann-Matos said,

    @PeterJones

    Actually, I configured Notepad++ to update as soon as an update is available so I wonder how this could have happend.

    As I said above,

    or you previously had an older version that got upgraded without changing your setting (if you originally had DirectWrite off, and upgraded to a version that had it on by default, it would not generally overwrite your previously-saved setting).

  • XBrackets Lite v1.4.0 has been released!

    Notepad++ & Plugin Development
    5
    2 Votes
    5 Posts
    3k Views
    Michael VincentM

    @Vitalii-Dovgan said in XBrackets Lite v1.4.0 has been released!:

    The uniqueness of XBrackets is in its external simplicity and internal complexity.

    Thank you. I get 3) from the SurroundSelection plugin. Notepad++ has “Go To Matching Brace” in Search menu, but I think it only includes { [ ( ) ] }, not quotes.

    Cheers.