• 0 Votes
    2 Posts
    921 Views
    Alan KilbornA

    @Bob-Dixon

    Sounds suspiciously like one of the “snippets” type plugins…

  • Regex for dictionary entries

    Locked
    10
    0 Votes
    10 Posts
    3k Views
    glossarG

    Hi guy,

    Just a quick confirmation: I’ve re-produced the same results with TEST_2 text and previous ones. I simply introduced a line-break to the very last line after copying&pasting by hitting the enter. This last line-break fixed the problem. I’ll continue to apply the regexes to severeal other entries and I’ill report problems in case I encounter.

    Thank you so much for your time and effort! I do muchappreciate it!

  • Search and replace options \n, \r, \t, \o, \x...

    Locked
    9
    1 Votes
    9 Posts
    60k Views
    Alan KilbornA

    @PeterJones

    Ah, okay, so extended mode support both \0 and \o. Good to know.

  • RegEx bug with big files

    4
    1 Votes
    4 Posts
    2k Views
    guy038G

    Hello, @niente0, @meta-cchuh, @alan-kilborn, @eko-palypse and All,

    I did some tests with a not so big file ( a bit more than 32,4 Mb ! ) just because this is the limit where the correct and the incorrect behaviour occurs :-((

    I used the single line, below, which ends with a space character and, then, the usual CR + LF chars. Its total size is, exactly, 100 bytes

    > 2. Switch from certificate verification to hashes verification due to "Notepad++" is rejected by CRLF

    After duplicating that line, a bit more than 340,130 times, I obtained a file, with the approximative size to test some regexes. Here are the results, obtained with N++ v7.6.4, on my old Win XP SP3 laptop :

    A) With a file WITHOUT any occurrence of the "@" character, NOR the string "abcdef" : ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ •-----------------------------•-----------------------------------------•---------------------------------------------------• | REGULAR expressions | Size MAXIMUM with a CORRECT Result | Size MINIMUM with an INCORRECT Result | •-----------------------------•--------------------•--------------------•--------------------•------------------------------• | [^@]abcdef | 33,333,333 Bytes | O occurrence | 33,333,334 Bytes | 1 occ. = ALL File Contents | | | | | | | | | | | | | | [^@\r\n]abcdef | 34,013,607 Bytes | 0 occurrence | 34,013,608 Bytes | 1 occ. = ALL File Contents | | | | | | | | [^@\x00-\x1F]abcdef | 34,013,607 Bytes | 0 occurrence | 34,013,608 Bytes | 1 occ. = ALL File Contents | | | | | | | | [\x20-?A-~]abcdef | 34,013,607 Bytes | 0 occurrence | 34,013,608 Bytes | 1 occ. = ALL File Contents | | | | | | | | [\x20-?@A-~]abcdef | 34,013,607 Bytes | 0 occurrence | 34,013,608 Bytes | 1 occ. = ALL File Contents | | | | | | | | [\x20-~]abcdef | 34,013,607 Bytes | 0 occurrence | 34,013,608 Bytes | 1 occ. = ALL File Contents | | | | | | | | [\x{0020}-\x{FFFF}]abcdef | 34,013,607 Bytes | 0 occurrence | 34,013,608 Bytes | 1 occ. = ALL File Contents | •-----------------------------•--------------------•--------------------•--------------------•------------------------------• | @abdef | Tested, up to a 200 Mb file => 0 occurrence ( OK ) | •-----------------------------•-----------------------------------------•--------------------•------------------------------• B) With a file containing only ONE occurrence of "@abcdef", near the END : ¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯ •-----------------------------•-----------------------------------------•---------------------------------------------------• | REGULAR expressions | Size MAXIMUM with a CORRECT Result | Size MINIMUM with an INCORRECT Result | •-----------------------------•--------------------•--------------------•--------------------•------------------------------• | [^@]abcdef | 33,333,334 Bytes | O occurrence | 33,333,335 Bytes | 1 occ. = ALL File Contents | | | | | | | | | | | | | | [^@\r\n]abcdef | 34,013,608 Bytes | 0 occurrence | 34,013,609 Bytes | 1 occ. = ALL File Contents | | | | | | | | [^@\x00-\x1F]abcdef | 34,013,608 Bytes | 0 occurrence | 34,013,609 Bytes | 1 occ. = ALL File Contents | | | | | | | | [\x20-?A-~]abcdef | 34,013,608 Bytes | 0 occurrence | 34,013,609 Bytes | 1 occ. = ALL File Contents | •-----------------------------•--------------------•--------------------•--------------------•------------------------------• | [\x20-?@A-~]abcdef | 34,013,617 Bytes | 1 occ. = @abcdef | 34,013,618 Bytes | 1 occ. = ALL File Contents | | | | | | | | [\x20-~]abcdef | 34,013,617 Bytes | 1 occ. = @abcdef | 34,013,618 Bytes | 1 occ. = ALL File Contents | | | | | | | | [\x{0020}-\x{FFFF}]abcdef | 34,013,617 Bytes | 1 occ. = @abcdef | 34,013,618 Bytes | 1 occ. = ALL File Contents | •-----------------------------•--------------------•--------------------•--------------------•------------------------------• | @abdef | Tested up to a 200 Mb File => 1 occurrence = @abcdef | •-----------------------------•-----------------------------------------•---------------------------------------------------•

    Remark : I suppose that the problem arise because when you search, for instance, for the regex @bcdef there is only ONE possibility but when you search for [^@]bcdef there quite a lot of possible matches !!

    I also tried to search for the regex abcdef and click on the button Find All in current Document. It did show the different lines containing the “abcdef” string ! Then, right-clicking inside the Find Result panel, I chose the option Found in these Found results....

    In this new dialog I type in the regex [^@]abcdef, and tick the option Search only in found lines. Unfortunately, it didn’t show these specific lines but the first one, only, when dealing with big files :-((

    Finally, the best, regarding your specific regex, would be ( just good sense ! ) :

    Firstly, replace @abcdef with, for instance, the string @abcdez, with the Replace All button, in Normal or Regular expression search mode

    Secondly, search for abcdef and click on the Find Next button OR the Find All in Current Document, in order to find out, implicitly, all the occurrences of the regex [^@]abcdef

    When your treatment of the [^@]abcdef occurrences is over, just do the reverse operation, searching for @abcdez and replacing with @abcdef

    Best Regards,

    guy038

  • java function list incomplete

    Locked
    7
    0 Votes
    7 Posts
    3k Views
    Alan KilbornA

    @PeterJones said:

    If it’s not clear from the issue 5085,

    I dunno, seems pretty clear to me. Should also be to someone into (a) text editing and (b) programming, both of which have been established are within the capabilities of the OP. :)

  • Request: support merging auto-completion files per language

    Locked
    2
    3 Votes
    2 Posts
    488 Views
    EkopalypseE

    @Nico-Vanslambrouck

    just curious about which language you are talking. It might be that I have a
    different approach/solution in a few days using LSP instead.

  • Bug during navigation of directories when saving a file

    Locked
    2
    0 Votes
    2 Posts
    482 Views
    Meta ChuhM

    welcome to the notepad++ community, @Samuel-Rowe

    only the new style file dialogue accepts . and .. at the path input area.

    please go to settings > preferences > default directory and enable use new style dialog as seen at the screenshot below.

    Imgur

  • Select Word

    Locked
    6
    0 Votes
    6 Posts
    3k Views
    PeterJonesP

    Looking at the Scintilla documentation, there’s SCI_MULTIPLESELECTADDNEXT, which says “If the current selection is empty then select word around caret”. Unfortunately, that’s not in the Settings > Shortcut Mapper > Scintilla Commands list. Looking at the Scintilla History, that command was added in Scintilla 3.5.7, but Notepad++ uses Scintilla 3.5.6: if Don had done one more update, that command could have been in the Shortcut Mapper. Sigh.

    But @guy038’s macro-suggestion should be workable for you.

  • What's the script for compiling and running C/C++ in Notepad++ 7.6.3

    Locked
    9
    1 Votes
    9 Posts
    3k Views
    Abdelrahiman SolimanA

    @Alan-Kilborn

    Thanks for the preceding helping effort.

  • Better document map

    Locked
    2
    0 Votes
    2 Posts
    912 Views
    EkopalypseE

    @Tolken-Sak

    See here - if this is intended to be a feature request.

  • UDL update

    Locked
    2
    1 Votes
    2 Posts
    565 Views
    EkopalypseE

    @UpThe-Creek

    afaik every change is automatically registered and saved when npp stops.

  • Make Notepad++ look nicer

    Locked
    5
    0 Votes
    5 Posts
    1k Views
    ZenderkingGamingZ

    What do you mean?

  • How to select all text to top of the file?

    Locked
    4
    0 Votes
    4 Posts
    21k Views
    rinku singhR

    @xuzo said:

    Let’s say I have this text:

    a
    b
    c

    Now to select the whole thing, I need to drag the mouse all the way to to the top, is there a shortcut to do that?

    link text

  • Code formatter (notepad++ 64)

    Locked
    9
    0 Votes
    9 Posts
    51k Views
    Meta ChuhM

    @Andrey-Ws

    TextFX can format empty spaces ?

    the best thing is, if you test everything yourself, by downloading the portable notepad++ 7.6.4. 32 bit from here:
    https://notepad-plus-plus.org/repository/7.x/7.6.4/npp.7.6.4.bin.zip
    (the portable version will work completely isolated from your installed version and is perfect for any testing. any settings or plugin installation you do at the portable version, will not modify anything at your installed version. that’s why many of us use this version for testing)

    extract npp.7.6.4.bin.zip to your desktop.
    start it by double clicking on notepad++.exe inside the npp.7.6.4.bin folder.
    use the built in plugins admin to download textfx, or any other available plugins you would like to try.

    happy testing.

  • Improving the Find dialog?

    8
    2 Votes
    8 Posts
    2k Views
    Alan KilbornA

    @cipher-1024 said:

    It’s the paragon of function over form dialog box

    Maybe I’m a right-brainer, but I don’t see the TextFX Find/Replace as so great. It’s OK, and of course there are some good ideas there, but maybe the primary benefit is that it is narrow in width.

  • Seperator line bounces back

    Locked
    5
    1 Votes
    5 Posts
    755 Views
    EkopalypseE

    This is like having teeth pain - you know when you touch the teeth with your tongue it hurts but you try it over and over again :-D

  • Is Notepad++ v7.6.3 a security update?

    Locked
    1
    0 Votes
    1 Posts
    475 Views
    No one has replied
  • Contribute with a new language (Tableau desktop and servers)

    Locked
    1
    1 Votes
    1 Posts
    571 Views
    No one has replied
  • How do you plan your time?

    Locked
    5
    -1 Votes
    5 Posts
    918 Views
    SalviaSageS

    Me? I write down the things that I want to work on,
    Then, later, usually on the weekends (because I work on weekdays)
    I work on them and I get somewhere.
    Small steps, eventually get you to places. But, it will never be perfect.

  • 0 Votes
    5 Posts
    3k Views
    rinku singhR

    @LED-WORLD said:

    ITS .COL FILE (<1KB) OPENIN NPP++
    TEXT FILE IS HERE
    PLEASE TELL ME WHICH SETTING I NEED TO DO FOR VIEW ANY GOOD FORMAT THAT’S MAKE MAY LIFE LITTLE EASY…

    your .col file is not human readable such as .dat file
    link text