• 2 Votes
    2 Posts
    275 Views
    ThosRTannerT

    Updated linter++ to v1.0.1

    Most obvious changes:

    Works properly in 32 bit mode Ability to switch linting off and on - mainly for people with slow PCs Double clicking on an error in the ‘system’ tab will open a new notepad++ buffer and provide more detail on the error Ability to define your own variables to be used in commands.

    This is available at the same page as above.

  • 0 Votes
    1 Posts
    17 Views
    No one has replied
  • 0 Votes
    8 Posts
    7k Views
    Serpens66S

    @xomx Hi, thank you very much. Yes indeed I installed that xml Tool ~ a month ago. Would indeed match the time when this started happening, thank you very much :)
    Do you know how to disable this behaviour in XML Tool Plugin?

  • 0 Votes
    2 Posts
    58 Views
    M Andre Z EckenrodeM

    I’m very certain that I’ve attempted, unsuccessfully, to paste multi-line text into FIND/REPLACE/MARK etc. string input zones many times, going back 10 years or more, though I always assumed that any line ending sequence was disallowed (I pretty much always use CRLF, myself). Of course, at least with the appropriate setting (I forget specifically, but think offhand that there is a setting for it), if you have text selected before you open the FIND/REPLACE/MARK dialog, that text then populates the FIND WHAT field, line endings and all. I just wish I could see them when they’re in there.

  • 0 Votes
    14 Posts
    104 Views
    PeterJonesP

    @guy038 ,

    I think you missed my point.

    My point was not, “you can enter C0 using Ctrl+<key>, so there’s no need/benefit to be able to also enter C0 using Alt+0###”. My point is, all you have to do to be able to get Alt+0### access for C0 codes is to turn off the option named “prevent control character (C0 code) typing into document”: if you have things set up in a way that you want to be able to enter control codes, then you are the kind of user who probably doesn’t need the accidental-Ctrl+combo “protection” that enabling that option provides.

    Making the developers try to intercept the keystrokes before Windows turns the keystrokes from multiple presses into sending a single character to the app, just because you aren’t willing to turn off the anti-C0-“protection” seems the wrong way around. N++ already provides the option that allows you to enable typing C0 codes, whether by Ctrl+<unmapped> or by Alt+0### for C0 codes, so if you want to enter C0 codes, then set the option appropriately.

    solution cannot be applied because :

    Or, I would say, the “solution cannot be applied without unmapping pre-defined shortcuts, which is simple to do using Shortcut mapper”. (Or, I would say that, if that were a “solution” I were recommending; but it wasn’t.)

    Enabling vs disabling of features always come with tradeoffs, and power users of Notepad++ make those tradeoffs every day.

    Maybe I’ll put it this way: the option is literally named “prevent control character (C0 code) typing into document”. If you want to be able to type control characters (C0 codes) into the document, you obviously have to turn off that option. This seems highly reasonable to me.

  • 0 Votes
    2 Posts
    32 Views
    PeterJonesP

    @Dawg1104 said in Adding a Language to official Notepad++:

    Is it at all possible to add a language to Notepad++ officially?

    At all? Definitely.

    Practically? It depends on the language.

    Notepad++ uses a library called Lexilla for handling the syntax highlighting of “official” languages. Lexilla actually provides some languages that Notepad++ has not yet exposed to its users. I have actually done a couple PR where I submitted the Notepad++ code update to enable those “hidden languages”.

    But if it doesn’t already exist in Lexilla, then someone would have to write the lexer per Lexilla standards, then submit it to Lexilla. One, in theory, could just submit a request that Lexilla add the language, but unless it happens to be a language that one of the Lexilla team is interested in, there’s very little chance they will implement it – for example, awk was requested to be added to Lexilla in 2009, but since the developer isn’t interested in it, it’s never been implemented. So practically, to add a new language to Lexilla, you have to write it.

    Those are the two paths to being “officially” added. But there are more paths to unofficial:

    There might already be a UDL (User Defined Language) available in the UDL Collection, If so, anyone can easily download the UDL definition from there and install it into their copy of Notepad++ per the UDL Collection instructions or, if you already have a UDL defined, but there isn’t one for that language in the Collection, you can submit it to the collection as described in the Collection instructions if it’s a simple list of keywords and operators and maybe a folding symbol (like the { ... } of C-style languages), it’s pretty easy to make your own UDL (and then submit it to the collection) my CollectionInterface plugin makes it really easy to download and install a language from the UDL Collection. wink wink nudge nudge If the logic is more complicated than simple keyword matching, then it’s possible to write a lexer plugin (overview found in the User Manual) – and such a plugin can be submitted to the Plugins Admin. (One of the most famous lexer plugins is the GEDCOM lexer, but there are actually quite a few of the plugins that have lexing capability among their features.)

    So, what language are you looking for, that you cannot yet find?

  • Search & Replace

    Help wanted · · · – – – · · ·
    3
    0 Votes
    3 Posts
    31 Views
    guy038G

    Hello, @Jose-Ramalho, @peterjones and All,

    @jose-ramalho, let’s suppose this INPUT text :

    move $a swap $b, $c

    Then :

    Open the Replace dialog ( Ctrl + H )

    Uncheck all box options

    FIND (?-s)^(.+)\t(.+)

    REPLACE \1 FIXED_TEXT \(\2\)

    Select the Regular expression search mode

    Possibly, check the Wrap around option

    Click on the Replace All button

    => You should get the following OUTPUT text :

    move FIXED_TEXT ($a) swap FIXED_TEXT ($b, $c)

    This is just my first idea. Obviously, this requires some ajustements. See you later !

    Best regards,

    guy038

  • When maths is reinvented by CHATGPT

    Humour
    4
    6 Votes
    4 Posts
    112 Views
    CoisesC

    @donho :

    Goodhart’s law: “When a measure becomes a target, it ceases to be a good measure.”

    In effect, large language models were designed to beat the Turing test. They aren’t artificial intelligence, they are simulated intelligence. That picture above (if real) demonstrates so clearly that it is “trying” to sound human in the way it rationalizes its error.

    Writing “my brain decided” is hilarious. That’s weasel wording even for a real human.

  • Notepad++ v8.8.4 Release

    Pinned Announcements
    1
    2 Votes
    1 Posts
    530 Views
    No one has replied
  • 32x32 sources for small Standard icons

    General Discussion
    9
    0 Votes
    9 Posts
    2k Views
    deleeleeD

    @PeterJones Thanks! 🙂

  • 0 Votes
    5 Posts
    111 Views
    xomxX

    @Notepadder said in Strange Notepad++ file recovery:

    How can I access the files in this folder from a more recent restore point as with first crash?

    If there is also a more recent Windows OS Restore Point but you selected an older one somehow (with older N++ backup folder state) during your effort to revive your PC, you can try to extract newer N++ files by ShadowExplorer.

  • Notepad++ v8.8.4 Release Candidate

    Announcements
    31
    2 Votes
    31 Posts
    2k Views
    PeterJonesP

    @Ekopalypse said in Notepad++ v8.8.4 Release Candidate:

    Does that mean if you are using 8.8.2 you can’t use the plugin admin to install plugins without unlocking gup.exe first? Because I just checked again and I can.

    Weird. I had assumed that if the MotW existed on gup.exe, it wouldn’t run. But no, with v8.8.2 portable, if gup.exe has MotW, Plugins Admin will still install plugins; but on v8.8.3 portable and v8.8.4-RC2 portable, if gup.exe has MotW, Plugins Admin will not install plugins

  • 0 Votes
    2 Posts
    81 Views
    xomxX

    @Michkovy said in NPPCrypt not fully decrypting text.:

    The file is stored in my dropbox, so it syncs to their cloud storage. Not sure if that is relevant.

    Could be. Seems to me that your file was simply out of sync somehow (common when the network is laggy or there was just a temp outage):

    Plus the newest line isn’t what I typed before the encryption.

  • 0 Votes
    3 Posts
    86 Views
    BoomBookB

    @PeterJones Thank you. As far as I can see, the function has not been removed. Before concluding this, I downloaded the versions one by one and checked the settings to see if it was still there. I was only able to find an option under “Default Directory.” My issue is now resolved. Thank you.

  • 0 Votes
    2 Posts
    68 Views
    PeterJonesP

    @Mark-D-Worthen-PsyD said in Advice for Backup settings with AutoSave installed:

    Today I searched for a file and found only a .bak file, which I cannot open, probably because it doesn’t have anything in it (?). It is not in %AppData%\Notepad++\backup\ .

    Right. Because the %AppData%\Notepad++\backup\ is used for the session snapshot files, which don’t use the .bak extension; the .bak extension is only used for the backup-on-save options. The backup-on-save go in the same directory as the file (or in a subdirectory relative to the file, depending on settings). This is described in both the FAQ and the User Manual.

    The most recent file in %AppData%\Notepad++\backup\ is from May (three months ago)

    That’s because that folder is only for the file tracking unsaved changes in the snapshot/periodic mode. As the FAQ descrbes, the instant you hit SAVE on a file, the snapshot/periodic file is deleted from the backup\ folder. This is described in the Built-in “Enable Session Snapshot and Periodic Backup” Feature of the FAQ, with more details for the particulars in Named Files and Unnamed Files sections just below it.

    If you’ve got a file from May still in that directory, then either

    you’ve had snapshot/periodic enabled that whole time, and you’ve had a file with unsaved changes that’s never been saved in the past 3 months (unlikely), or (more likely), in May, you had snapshot/periodic enabled, and had unsaved changes in one file; then you turned off snapshot/periodic (which means that Notepad++ stops its auto-save to the backup folder, but doesn’t actually delete any active snapshots currently stored) or you reset the session or there was a crash/unexpected-reboot, which left Notepad++ not noticing that it hadn’t closed that file

    What do you recommend

    It really depends on your needs.

    thinking I should deselect everything

    I leave ☑ Remember current session for next launch checkmarked, because that allows Notepad++ to remember which files were open last time – it doesn’t do the “unsaved files” tracking, but I don’t need that; but I like Notepad++ always opening whatever files I happened to last be editing.

    So I usually use AutoSave plugin with every 10 minutes (plus often one or both of lose-focus and/or change-tabs), set for All Open Files. In the builtin backup preferences, I remember the session, but don’t do the snapshot/periodic or the backup-on-save.

  • 0 Votes
    9 Posts
    99 Views
    Wally WilsonW

    @PeterJones

    Hi Everyone,

    I decided to drop back and punt. I cannot get hung up on this. I have other problems, and too much to do.

    I uninstalled the latest version, then downloaded the previous version (8.8.2), installed it, and installed DSpellCheck again. It is working. The underlining is not as prominent as I would like (even after adjusting the size to max), but it will have to do.

    I want to thank everyone who replied. Unfortunately, I do not have enough points to upvote anyone — sorry.

  • 0 Votes
    4 Posts
    53 Views
    PeterJonesP

    I thought someone had suggested combining it to a single dialog, but there was some deep technical reason it was infeasible

    I looked through old issues (opened and closed): the closest I could find was the Isse#12079, where the loading of the current session would prompt N times if there were N network files missing. There was quite a lot of back-and-forth (hundreds of comments), but eventually, they were able to make it work, and get a YesToAll/NoToAll message added to the dialog when multiple files from the session were not available.

    Since it was feasible in that situation, I am hoping it’s also feasible here. Thus, I created Issue #16908 to see if the “Keep non existing file” dialog (when the network goes down) and the “Reload” dialog (when the network comes back) can add the YesToAll/NoToAll buttons. I don’t know whether it’s really feasible, or if it will ever be implemented, but the request has at least been made. Those who want this feature can go to that issue and upvote and/or watch for whether or not it gets implemented.

  • Sorting text with numbers

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

    Hello, @michael-gomez, @coises, @thomas-knoefel and All,

    As @coises said, you could achieve your goal with the buit-in regular expression engine of Notpead++ !

    So, from your INPUT text :

    Warsongs rolls 206 Tykee rolls 206 Shadowhunter rolls 798 Ravencauthon rolls 229 Omgwtflolroflgg rolls 479 Nephlite rolls 576 Groverton rolls 943 Blodhgram rolls 829 Azria rolls 675 Antonioklaus rolls 720

    Using the following regex S/R :

    FIND (?-s)^.+?(\d+)

    REPLACE \1 $0!

    => You should get this temporary text :

    206 Warsongs rolls 206! 206 Tykee rolls 206! 798 Shadowhunter rolls 798! 229 Ravencauthon rolls 229! 479 Omgwtflolroflgg rolls 479! 576 Nephlite rolls 576! 943 Groverton rolls 943! 829 Blodhgram rolls 829! 675 Azria rolls 675! 720 Antonioklaus rolls 720!

    Then using the menu command :

    Edit > Line operations > Sort Lines Lexicographically Descending ( Should be better sorted than using the Sort Lines As Integers Descending ! )

    You would be left with that temporary text :

    943 Groverton rolls 943! 829 Blodhgram rolls 829! 798 Shadowhunter rolls 798! 720 Antonioklaus rolls 720! 675 Azria rolls 675! 576 Nephlite rolls 576! 479 Omgwtflolroflgg rolls 479! 229 Ravencauthon rolls 229! 206 Warsongs rolls 206! 206 Tykee rolls 206!

    And, finally, with the last regex S/R, below :

    FIND ^\d+\x20

    REPLACE Leave EMPTY

    Here is you expected OUTPUT text :

    Groverton rolls 943! Blodhgram rolls 829! Shadowhunter rolls 798! Antonioklaus rolls 720! Azria rolls 675! Nephlite rolls 576! Omgwtflolroflgg rolls 479! Ravencauthon rolls 229! Warsongs rolls 206! Tykee rolls 206!

    But, indeed, as @coises mentionned it, the two records with the same integer part 206 are inverted !

    Best Regards,

    guy038

  • 0 Votes
    3 Posts
    125 Views
    xomxX

    @PeterKee said in Undo/Redo (CTRL+Z/CTRL+Y) behaves unexpectedly after a few hours (NppFTP, NPP 64-bit, Win11):

    Has anyone else experienced this?

    Sounds similar as the infamous GitHub issue #9426.

    This never happened with the 32-bit version,

    Oldest report there is for Notepad++ v7.9 (32-bit), so some users had it even for the 32-bit N++.

    I fixed one such problem but users still report occasionally occurrences of it, so it’s clear that there should be more code to fix. Unfortunately, so far I could not reproduce (so cannot fix it…) and the users have not been able to describe 100% reproducible steps. So if you find such a STR, it will be great.

  • 0 Votes
    6 Posts
    119 Views
    Daniel N 0D

    Thank you both!