• Issues with Menus in Notepad++ and Windows 11 (OS Build : 22621.819)

    2
    0 Votes
    2 Posts
    186 Views
    PeterJonesP

    @Chuck-Rheault-0 ,

    I’m not sure I fully understand what you mean by “boxes around every menu item”: a screenshot might be helpful for us to understand the problem. I have never seen a problem with menus being to narrow or not appearing…

    If you have other programs displaying similar symptoms, then I’d hazard a guess that it’s something with the particular update of Windows 11, and not anything that Notepad++ can do anything about. (My home PC, which is Windows 11, has been prompting me to get the next update; I had been planning on doing it during Thanksgiving break next week, but maybe I’ll continue to hold off on doing that, if it’s breaking things like Notepad++.)

  • intune update

    2
    0 Votes
    2 Posts
    1k Views
    PeterJonesP

    @Karolina-Sikorska ,

    There is no official Notepad++ distribution using MSI technology. All official distributions are either self-extracting exe files or .zip/.7z

    I have seen that there are some people on the net who re-package Notepad++ into an MSI, but they are not officially distributed, and the Notepad++ developers make no guarantee or warrantee that what gets installed from any MSI is actually the official Notepad++ product: the developers have no control over whether the re-packagers have modified Notepad++ in some nefarious or other manner.

    Notepad++ developers do not support the unofficial MSI distributions.

    Official Download Sites https://notepad-plus-plus.org/downloads/ and any pages on that site https://community.notepad-plus-plus.org/category/1/announcements and the http://download.notepad-plus-plus.org/repository/ links that they reference https://github.com/notepad-plus-plus/notepad-plus-plus/releases/

    No place else is sanctioned or supported

  • Auto Complete - List only specified keywords?

    7
    0 Votes
    7 Posts
    656 Views
    J

    @Lycan-Thrope

    Ah hah. Thanks for that tip. I’m fairly sure that I don’t have the proper order then. I’ll have to take a closer look at that.

  • How to find webpages where a particular link was not added

    11
    0 Votes
    11 Posts
    682 Views
    dr ramaanandD

    @PeterJones I could do it in one step with ${0}\r\n<li><a href=otitis.html">Otitis</a></li> in the Replace All field using the Regular expression mode

  • How to change the keyword for block start?

    3
    0 Votes
    3 Posts
    199 Views
    Rory WastR

    @PeterJones I use the standard Pascal syntax, but this little thing is like a splinter) It’s a pity that you can’t change it. Thanks for the answer.

  • 0 Votes
    2 Posts
    846 Views
    PeterJonesP

    @Apple-Ono ,

    You already asked that question in your reply in this thread. And I had answered you there already. Don’t repeat yourself.

    [admin is locking the thread; replies go in the other thread.]

  • Changelog of notepad++ releases?

    2
    0 Votes
    2 Posts
    226 Views
    PeterJonesP

    @Vanshika-Warathe ,

    I don’t think I have ever noticed Notepad++ publish a change as a result of a “CVE”.

    There is definitely not an API for accessing changes. Each version comes with its own change.log. And those are all amalgamated into https://github.com/notepad-plus-plus/notepad-plus-plus/wiki/Changes . I don’t find CVE mentioned on that page anywhere, though “security” is mentioned a few times.

  • A single UDL.xml for both theme types (light and dark)?

    17
    0 Votes
    17 Posts
    2k Views
    Lycan ThropeL

    @PeterJones ,
    Interesting, but my environment is so custom done, overriding the system defaults that it’s a mess either way. :) But it seems to work.

  • Copy and paste sections with RegEx or macro?

    7
    0 Votes
    7 Posts
    761 Views
    guy038G

    Hi, @venus642, @neil-schipper and All,

    Oh… yes, totally exact and clever iniiative Neil, indeed !

    Of course, as the " character and the string ";" seemed to be separators, I presumed that they were not used within the content of the questions. But I agree that this new formulation is safer !

    So, @venus642, the second regex S/R to use is, preferably :

    SEARCH ☑(?=(?s:(?!"\R).)+";"\R)

    REPLACE

    Cheers,

    guy038

  • How do I replace a particular sentence across multiple files?

    24
    0 Votes
    24 Posts
    2k Views
    guy038G

    Hi, @terry-r,

    Of course, in absolute terms, you’re quite right about it ! But I would say that people are responsable of what they write !

    My regex finds a word Please, followed later with the nearest word E-mail, followed later with the nearest word treatment

    If, because of some typos, one or several of these 3 words are truncated or modified in any way, due to the initial (?s) modifier, the regex engine will always try to find out, by all means, a match, if any !

    Note that I suppose a possible variation by telling, in my previous post : " Check the Mach case option, if necessary "

    Thus :

    Any malformed word is just considered as stuff, part of the regex part .+?

    And for the smallest range of characters containing these 3 words in that order ( Please ... E-mail .... treatment ) :

    A <b> string is inserted before the first word Please

    A </b> string is inserted after the final word treatment

    No more, no less !

    BR

    guy038

  • Regex: How do I search for My_String [any characters] [quotation mark] ?

    18
    0 Votes
    18 Posts
    3k Views
    IanSunlunI

    @PeterJones Ah, thats good to know, thanks !

  • Function List for UDL - multi-line regex

    9
    0 Votes
    9 Posts
    493 Views
    J

    @Lycan-Thrope

    Of course, I realized that after @PeterJones posted his answer.

  • 0 Votes
    5 Posts
    532 Views
    IanSunlunI

    @Alan-Kilborn Now that I put the \r in, it is finding the literal equals sign.
    Before I was putting =\n, it should be =\r\n as I am on Windows.

  • Replace a line with 2 new lines

    4
    0 Votes
    4 Posts
    323 Views
    Alan KilbornA

    @Edgar-Rousselin

    Try:

    Find: ^N\d{3} M9$

    You can learn some of this (regular expression) stuff yourself.
    See the USER MANUAL section.
    Also see the FAQ entry.

  • How to turn off printing background color of changes?

    4
    0 Votes
    4 Posts
    3k Views
    Alan KilbornA

    @guido66611x said in How to turn off printing background color of changes?:

    I’ll wait for the next version release.

    Wait no longer.
    Get 8.4.7 from HERE.

  • Find repeating lines in a line?

    3
    0 Votes
    3 Posts
    322 Views
    Neil SchipperN

    @Digi-Uzman

    When you say extract, what exactly do you mean? Do you want them deleted? Or is it good enough to simply identify them so you can take further action?

    Do you care about preserving the original order of lines in the file that needs to change (if a file will change)?

    It would be best if you could provide three

    sample text blocks (see FAQ, find section on "literal text boxes: used in many other posts on this site).

    https://community.notepad-plus-plus.org/topic/21925/faq-desk-formatting-forum-posts

    Show file1 sample text and file2 sample text, making sure to include both cases that do and do not have matches, maybe 5 - 20 lines each, and then in the third show exactly what you want to end up with.

    I’m fairly certain what you want can be done. If order preservation is important it might be a multi-step process.

  • Disconnect on save with NPPFTP

    3
    0 Votes
    3 Posts
    917 Views
    iChal2112I

    I’ve recently returned to using NppFTP and have noticed the same thing - it’s very annoying!
    After finding the work-around I’ve described below, it leads me to believe that the problem (in my case) might be that the default cache location is not writable without admin privileges (which have recently been changed on my work PC due to a security breach).
    I haven’t ‘upgraded’ to Windows 11 yet, so can’t say whether Notepad++ is trying to cache the files a privileged location, but it worked for me.

    I found that the problem went away when I assigned a (writeable) local path to the external path. I haven’t had any problem since.

    I hope this helps.

    Untitled.png

  • Macro for Open, Find and Replace and Save

    22
    0 Votes
    22 Posts
    4k Views
    Jaguar AsadJ

    @guy038 said in Macro for Open, Find and Replace and Save:

    Hello, @josé-luis-montero-castellanos, @aln-kilborn and all,

    @josé-luis-montero-castellanos, regarding your regex S/R :

    SEARCH (?s)(<St)(.)(/S)(.)(<Xt)(.)(/X)|(<Xt)(.)(/X)(.)(<St)(.)(/S)

    REPLACE ?1\5\2\7\4\1\6\3:${12}${9}${14}${11}${8}${13}${10}

    Why do you need the leading in-line modifier (?s), in the search part ? Do you mean that the single char . in group 2, 4, 6, 9, 11 and 13 may also represent a line-break char ( \r or \n ) ?

    I suppose not ! Then, your correct search regex is rather :

    (?-s)(<St)(.)(/S)(.)(<Xt)(.)(/X)|(<Xt)(.)(/X)(.)(<St)(.)(/S)

    where any . single char will represent a non-break char, only !

    Now, I noticed that the groups used, in replacement, for each alternative of the search regex, are in the same order ! Then, you can use, preferably, a specific feature of the Boost Regex engine, called Branch Reset

    For instance, in your regex, the numbers of each group are :

    (?-s)(<St)(.)(/S)(.)(<Xt)(.)(/X)|(<Xt)(.)(/X)(.)(<St)(.)(/S) Gr : 1 2 3 4 5 6 7 |8 9 10 11 12 13 14

    If we use the Branch Reset feature the search regex becomes :

    (?-s)(?|(<St)(.)(/S)(.)(<Xt)(.)(/X)|(<Xt)(.)(/X)(.)(<St)(.)(/S)) Gr: 1 2 3 4 5 6 7 |1 2 3 4 5 6 7

    Thus, your entire regex S/R can be simplified as below :

    SEARCH (?-s)(?|(<St)(.)(/S)(.)(<Xt)(.)(/X)|(<Xt)(.)(/X)(.)(<St)(.)(/S))

    REPLACE \5\2\7\4\1\6\3

    For instance, given this INPUT text :

    <St2/S4<Xt6/X <Xt9/XB<StD/S

    You would get the OUTPUT text, below :

    <Xt2/X4<St6/S <St9/SB<XtD/X

    Notes :

    The Regular expression option must be selected

    Preferably, tick the [Wrap around](https://www.ahijoy.com/) option

    Best Regards,

    guy038

    I tried it but didn’t work

  • Make NPP list its current shorcut key assignments?

    9
    0 Votes
    9 Posts
    5k Views
    PeterJonesP

    Future reference:

    More of the solution to this, with example scripts, is found here

  • Replace specific line #s within multiple programs

    8
    0 Votes
    8 Posts
    678 Views
    Alan KilbornA

    @Scott-Raskin said in Replace specific line #s within multiple programs:

    how to replace that with all of that text below

    Arguably the easiest way is to do this:

    select your desired replacement text:
    955b70e6-212a-41a3-a9a9-1ba3ca2813f5-image.png

    press Ctrl+Shift+f to bring up Find in Files window; your desired replacement data will be in the Find what box (not in Replace with where you want it):
    c7416569-fac0-4b52-b7a4-75f5d8381692-image.png

    press the “up/down arrow” – aka “swap” – button to move your data from Find what to Replace with:
    61e5360d-2997-4480-a9c3-8df561aaf540-image.png

    put your search expression into Find what, and continue on with hopefully obvious steps to accomplish your replacement operation