• 1 Votes
    2 Posts
    118 Views
    MertschM

    🧡 Thank you very much for going through all the trouble. I literally know what you are talking about.

  • 0 Votes
    4 Posts
    83 Views
    PeterJonesP

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

    you must restart notepad++ in order to see the change on shortcuts.xml

    Specifically, Notepad++ saves changed settings to disk when the application exits.

  • Notepad++ v8.8.7 Release Candidate

    Announcements
    21
    6 Votes
    21 Posts
    718 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.

  • 0 Votes
    9 Posts
    80 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.

  • Looking for dBASE IV (old DOS versions) UDL

    General Discussion
    22
    2 Votes
    22 Posts
    3k Views
    Lycan ThropeL

    @James-Burke-0 ,
    It took you a year to come back and ask this?
    The answer is no.
    I read the documentation of the product a year ago, ascertained that it is basically a DOS emulator run program and the description, time of publishing and hard data capacities and reference to table types means that no, it is not capable of DBF 7 handling. If it was, it would say so.

  • 0 Votes
    5 Posts
    131 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.

  • UDL - combining C++ folding and Nasal highlighting

    General Discussion
    5
    0 Votes
    5 Posts
    65 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.)

  • quick toggle multi-line tab on/off.

    General Discussion
    7
    0 Votes
    7 Posts
    993 Views
    PeterJonesP

    @N1ck01 said in quick toggle multi-line tab on/off.:

    I too would really like to have a quick toggle on/off of the Multi-line Tab Bar feature and I found a post on GitHub providing a customized macro that supposedly does it it, but it didn’t do anything when I tried it.
    I’m hoping anyone here can please test it and confirm if it does work or not so I know if it’s me or not.
    And if it’s not just me, would anyone with the expertise please be able to do a working solution?

    It does not work anymore. This is because the Developer fixed the mistake that it was exploiting. As a Preference setting, not a menu command, it should never have had a menu command ID assigned to it (the IDM_VIEW_DRAWTABBAR_MULTILINE = 44044 that was sent in the old macro). In v8.7.2, one of the changes made was to move all those tab-bar preference messages from the API/Macro-accessible IDM menu-command-ID space to the NPPM_INTERNAL_* internal message section here.

    I am not certain it’s possible to force Notepad++ to accept an internal message when it’s sent from the outside. (I tried to use PythonScript to send that message, with the 0,0 params shown here, but it didn’t seem to response. So I’m currently doubtful that it’s possible anymore.

  • 0 Votes
    2 Posts
    53 Views
    PeterJonesP

    @Eric-Y ,

    has anyone else seen this?

    I have not.

    If it were just randomly typing it where your cursor/caret is, I would say that maybe you have a dirty or flakey keyboard. But since it seems to be happening in random locations, even though your caret/cursor is not there, I might blame a flakey plugin, or maybe you have a broken AutoHotKey or similar external program that’s incorrectly injecting keystrokes into Notepad++.

    To debug a Plugin as the possible issue, see our Crash FAQ: Possible Culprit: Plugin – the FAQ focuses on crashes, but really that section of the FAQ applies for debugging any problem that might be caused by a plugin.

    unfortunately, we cannot really help you debug AHK or other external programs.

  • 15sec freeze with word wrap

    General Discussion
    2
    0 Votes
    2 Posts
    38 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
    135 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
    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.

  • 0 Votes
    15 Posts
    406 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
    81 Views
    No one has replied
  • NppExec v0.8.10 has been released!

    Notepad++ & Plugin Development
    1
    5 Votes
    1 Posts
    111 Views
    No one has replied
  • 3 Votes
    1 Posts
    118 Views
    No one has replied
  • 0 Votes
    3 Posts
    79 Views
    PeterJonesP

    @PeterJones said in Default LF and not CRLF:

    only one instance (in theory, the last to close) has permission to write the settings to disk.

    that (or my original phrasing of “in theory, the first instance”) are both technically right, and practically wrong. it’s actually very confusing, and it depends on which configuration file you are talking about.

    I took a portable, and put it into multi-instance mode. then opened two instances. Instance 1, I set to Dark Mode + Small Toolbar Icons, instance 2 I set to Light Mode + Big Toolbar Icons. I closed Instance 2, and looked, and saw that config.xml was saved, but session.xml did not save. then I closed Instance 1, and saw that config.xml was saved again and session.xml was saved this time. So in this run, both were able to write to config.xml, but only the first instance was able to write to session.xml. When I ran one instance of Notepad++ after this, it was in Dark Mode + Small Toolbar, which shows that instance 1 definitely “won” for the config.xml

    I started a new pair of instances – this time, they both started out in Dark Mode + Small Icons. Then I changed Instance 1 to Light Mode + Small Icons, and changed Instance 2 to Dark Mode + Big Icons. I closed instance 1, and saw that both config.xml and session.xml were saved. Then I closed instance 2 and saw that config.xml was saved but session.xml was not. This seems to confirm my working mental model. When I started one instance after this, it was Dark Mode + Big Icons, which was the instance 2 setting, and thus the last one closed “won” for config.xml again.

    Hence, the way I will phrase things, at least based on my best understanding for now:

    When multiple instances of Notepad++ are open, each will write its config.xml when it exits, so the last instance closed is the one whose config.xml will “win”. However, only the first instance of Notepad++ in multi-instance mode gets permission to write to session.xml, so only that first instance will ever save its session.

  • 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
    218 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.