• double click to select word also selects coma behind it

    Locked
    3
    0 Votes
    3 Posts
    3k Views
    Wolf WarW

    thx
    I had version 7.3.3 (not sure why didn’t update, probably firewall block it )

    with 7.5 works fine

  • Search & Replace from beginning

    Locked
    3
    0 Votes
    3 Posts
    2k Views
    Frank KühnenF

    @guy038 said:

    Very easy, indeed ! Just check the Wrap around option, in the Find / Replace / Mark dialog

    Oh my… really easy. I thought Wrap around would mean search over multiple lines (wrap around line ending). Thanks a lot!

  • Bold Green Underline Highlight - Help Removing

    Locked
    2
    0 Votes
    2 Posts
    2k Views
  • changing color

    Locked
    1
    0 Votes
    1 Posts
    859 Views
    No one has replied
  • Large collapsed XML slow to scroll.

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Find all lines that contain specific strings

    Locked
    6
    0 Votes
    6 Posts
    44k Views
    guy038G

    Hello, @yasser-hhalil and @scott-sumner,

    Sorry, I’m not very reactive, cause I’m on holidays, in North Brittany, with my two sisters and their husbands. What to say ? We make a cure of seafood : cockles, periwinkles, clams, lobsters, crabs and even octopus ! To sum up : the Paradise ;-))Since one week, weather was quite fine, here, but today it was raining. So, I’m back to N++ and the Community, for a while !!

    Ah, @scott-sumner, very clever regex, found by Alin Purcaru, on Stackoverflow site !

    To complete this topic, let’s suppose we want to find all lines with the five first-names : jack, james, jason, jules and Joe

    Here are, below, four regexes, from the more restrictive behaviour to the less restrictive behaviour :

    In regex A, rhe five first-names must be true words, in the exact lower case

    In regex B, rhe five first-names must be true words, whatever their case

    In regex C, rhe five first-names may be glued in bigger words, but with their exact lower case

    In regex D, rhe five first-names may be glued in bigger words, whatever their case

    So :

    Regex A = (?-is)^(?=.*\bjack\b)(?=.*\bjames\b)(?=.*\bjason\b)(?=.*\bjules\b)(?=.*\bjoe\b).*

    Regex B = (?i-s)^(?=.*\bjack\b)(?=.*\bjames\b)(?=.*\bjason\b)(?=.*\bjules\b)(?=.*\bjoe\b).*

    Regex C = (?-is)^(?=.*jack)(?=.*james)(?=.*jason)(?=.*jules)(?=.*joe).*

    Regex D = (?i-s)^(?=.*jack)(?=.*james)(?=.*jason)(?=.*jules)(?=.*joe).*

    Notes :

    As usual, the Regular expression search mode must be checked !

    The initial modifiers force the search to be sensitive / insensitive ( -i / i ) to case, and also means that dot matches a single standard character only ( -s )

    The ^ assertion, stands for the location beginning of line, where starts the test of the following features ( look-arounds )

    Each form (?.*......) is a positive look-around, a condition which must be verified to get an overall match

    If all conditions are true, the final regex is simply ^.*, so all contents of the line, from its beginning

    Then, if you copy/paste the following lines, in a new tab :

    01 james 02 jason 03 joe 04 james and jack 05 jason and jules 06 jack, jason and joe 07 peter, joe, jack, james and jules 08 peter, jack, james, jason, jules and joe 09 james, joe, jason, jules, jack and margaret 10 peter, jules, james, jack, jason, joe and margaret 11 joe, jules, jason, james and jack 12 jAMes 13 jASon 14 jOE 15 jAMes and JAck 16 jASon and JUles 17 jACk, jASOn and joe 18 pETer, JOE, jack, jaMEs and JUles 19 pETer, JACk, james, JAson, jULes and joe 20 jAMes, JOE, jason, jULes, jaCK and margaret 21 pETer, JULes, james, Jack, jASon, jOE and margaret 22 jOE, juLES, jason, jAMes and Jack 23 james 24 jason 25 joe 26 james and jack 27 jason and jules 28 jack, jason and joe 29 peter, 12joe34, jack, 56james78 and jules 30 peter, 12jack34, james, 56jason78, jules and joe 31 james, 12joe34, jason, 56jules78, jack and margaret 32 peter, 12jules34, james, 56jack78, jason, joe and margaret 33 joe, 12jules34, jason, 56james78 and jack 34 jAMes 35 jASon 36 jOE 37 jAMes and 12jack34 38 jASon and jules 39 jACk, 12jASOn34 and joe 40 pETer, 12JOE34, jack, 56jaMEs78 and JUles 41 pETer, 12JACk34, james, 56JAson78, jULes and 90joe12 42 jAMes, 12JOE34, jason, 56jULes78, jaCK and margaret 43 pETer, 12JULes34, james, 56Jack78, jASon, 90joe12 and margaret 44 jOE, 12juLES34, jason, 56jAMes78 and 90Jack12

    You’ll easily notice that :

    Regex A matches lines from 8 to 11

    Regex B matches lines from 8 to 11 and from 19 to 22

    Regex C matches lines from 8 to 11 and from 30 to 33

    Regex D matches lines from 8 to 11, from 19 to 22, from 30 to 33 and from 41 to 44

    Now, from an already saved file, once you’ve got the results, in the Find Result panel, after clicking on the Find All in Current Document button, using one of regexes, above, you may, also, search for each individual first-name :

    Right-click in the Find result panel

    Select the Find in this finder… option

    Now, in the new Find in finder dialog :

    Type a first-name, for instance jack, in the Find what: zone

    Check the Search only on found lines option

    Uncheck the two options Match whole word only and Match case

    Select, if necessary, the Normal search mode

    Click on the Find all button

    => A new Find resul tab is created and displays any occurrence of the string jack, found in the lines of the Find result panel, only !

    Repeat these steps, changing for an other first-name, to get 5 Find resul tabs, all using the Line Filter Mode of search !

    IMPORTANT : If the Find result panel contains results, from a non-saved file ( with new # name ), the context option Find in this filder… does NOT seem to work ! I’ll add a post to @don-ho, to that purpose, very soon !

    Best Regards,

    guy038

  • Bug? reload makes editor jump if last line is shown

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Feature request: Search in searched results

    Locked
    4
    0 Votes
    4 Posts
    2k Views
    Scott SumnerS

    A key point that I missed–but it worked anyway because it is the default option–is to check the Search only in found lines checkbox in the two Find in finder searches above. Otherwise, ALL LINES of the files hit in the prior searches get examined in subsequent searches, instead of only the lines that were hit earlier.

    Imgur

  • Ask to save untitled file in v7.4.2

    3
    0 Votes
    3 Posts
    2k Views
    ynaderiY

    Thanks.
    Remember current session for next launch was before checked but by checking the Enable session snapshot and periodic backup box the problem solved.
    Thanks again.

  • Undo is undoing hundreds of changes & hours of work

    3
    0 Votes
    3 Posts
    2k Views
    glennfromiowaG

    @tp-thompsop Do you mean holding down CTRL-Z is undoing hundreds of changes? I happen to like the fact that I can press CTRL-Z hundreds of times to undo all changes back to the last filesave, and CTRL-Y to redo all changes!

    If it’s a Scintilla issue mentioned by @gstavi, it’s been that way for a long time, not just version 7.4.2.

  • npp search goes in unending loop, doesn't end where we started

    3
    1 Votes
    3 Posts
    2k Views
    glennfromiowaG

    @Training-Surat Thank God for Periodic Backup, right? Regular Expressions are an art as much as a science, but having said that, I’m aware of ways that Notepad++ does it less than ideally. But I agree that what it does, for the price, is absolutely awesome!

    @V-S-Rawat Half-jokingly, I say, “It’s not a bug, it’s a feature!” There have been discussions here where a user says, “I wish Notepad++ did [something] like [some program].” Then it gets implemented, and lots of other users complain because it doesn’t work like it used to. :)

    I understand what you’re saying, and sometimes it frustrates me too that I need to remember what line I started on. However, there are other times where I want to search for or replace a repeated part, and after I’ve been through the file once, there are still more instances that are repeated more than once, so that feature can come in handy. Here are some tips (used together or individually) to overcome this difference in functionality:

    Use the count feature to count the number of occurrences before actually finding the text. Set a bookmark (Ctrl-F2) before searching, then return to the bookmark after search (F2). Go to the top of the file, use the Search/Replace box, and un-check the Wrap around checkbox

    There are probably more ways to manage this, but those are the ones I use when I absolutely have to get back to where I started when I’m finished.

  • When Notepad++ to support cross platform capability?

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    cipher-1024C

    I think most people on other platforms just run it under Wine and it works well. If it works for @Claudia-Frank , it may be good enough for you too.

  • Saving Settings

    Locked
    2
    0 Votes
    2 Posts
    2k Views
    cipher-1024C

    Hi Chuck. In a default installation, your settings are in %appdata%\Notepad++. This wiki page has a thorough description of all the files, where they are, and what they do. If you have one of the supported cloud providers, you can save your settings there (see the instructions on the wiki page). I would suggest making a backup of the whole %appdata%\Notepad++ directory before you experiment with that. Somehow I whacked my settings when I was screwing around with the cloud option and I cried and cried.

    Good Luck

  • Hex/Binary Editor

    10
    0 Votes
    10 Posts
    105k Views
    Tom ShawT

    @Claudia-Frank @guy038 @Scott-Sumner

    Perfect.

    Only problem is Im a c++/javascript guy and not a python guy…

    I like snakes too!

    Im actually after a binary representation of a file…Im working with lots of sensor cells so it might just be that it would be simple to write that in js. I was just trying to avoid having to write more code :(

    In that case we could always debate js vs Python because the last time I had a code argument was perl vs php. Its funny, all these languages get closer and closer to each other and eventually well end up with malloc statements and vectors and the std library :)

    Thanks for the replies and I think I need to write the tool to view the data in a browser so I might as well just write that first because its going to be handy to have.

    Unless there s a HxD (which is excellent btw) :)

    Cheers
    Tom

  • 1 Votes
    3 Posts
    3k Views
    chriszuercherC

    Is there any news on this? This is also important for us. I tried the approach in https://notepad-plus-plus.org/community/topic/12927/unattended-installation-auto-update-disabled/2 but it isn’t working reliable for us. An installation switch would be a much better solution for us to. I would really appreciate this feature.

  • Can Notepad++ do searches for broken HTML tags?

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • Notepad++ hangs when deleting large amounts of text

    Locked
    2
    0 Votes
    2 Posts
    1k Views
    No one has replied
  • duplicate shortcut, missing shortcut

    Locked
    1
    0 Votes
    1 Posts
    1k Views
    No one has replied
  • find bug for exact match

    5
    0 Votes
    5 Posts
    4k Views
    Marcelo FinkielszteinM

    [1] Suggested Workaround approach for ramromail:
    Do not use “whole words” options for coding scenarios.
    It seems that the “whole word” definition is too simplistic for your needs. Use regex instead, where you will be able to define separators to you convenience.

    [2] Suggestions for npp coders (Wish list):
    [2.1] When the user picks “whole word”, show “advanced options” for the user to define their own word delimiters.
    [2.2] Or add a config section for word delimiters among the preferences?

    HTH
    Marcelo

  • Does NPP have an automated test suite?

    Locked
    4
    1 Votes
    4 Posts
    2k Views
    MAPJe71M

    how the whole project is tested

    AFAIK manually and mainly by @donho.
    Releases are preceeded by pre-releases which can be used by users to report regressions/critical issues.

    Is there anything that needs people to contribute in that matter?

    IMO automated UI testing would be a great addition!