• Need the ability to have fixed-width line number column

    19
    0 Votes
    19 Posts
    10k Views
    Alan KilbornA

    @Michael-Vincent said in Need the ability to have fixed-width line number column:

    (Scintilla multiedge)

    You mentioned “multiedge” briefly above; I agree that this could definitely help the OP. And, it appears a native multiedge capability is coming soon to Notepad++ !

    See https://github.com/notepad-plus-plus/notepad-plus-plus/pull/8107 and :

    f8d30148-91ff-48c1-a887-3c9de23250d5-image.png

  • Help find 2nd occurrence and replace

    16
    0 Votes
    16 Posts
    6k Views
    astrosofistaA

    Hi @guy038

    Thank you, your’s is good advise, as well as @Alan-Kilborn’s. As I told him, I only took into consideration the Windows case, ignoring other platforms.

    Will try to not forget it.

    Best Regards

  • "Find" box grayed out.

    10
    1 Votes
    10 Posts
    2k Views
    astrosofistaA

    @chilkoot

    Great! It is good to hear that it worked for you.

    Best Regards.

  • macro-writing

    4
    0 Votes
    4 Posts
    299 Views
    Alan KilbornA

    The discussion is continued HERE.

  • macro-writing

    4
    0 Votes
    4 Posts
    608 Views
    Alan KilbornA

    The discussion is continued HERE.

  • macro-writing

    2
    0 Votes
    2 Posts
    211 Views
    Alan KilbornA

    @khk-khk

    I’m not sure why you are opening a separate new thread each time you are replying, but OK, it is good that things are making sense on your end! :-)

  • Auto-Completion settings are just plain odd

    6
    5 Votes
    6 Posts
    315 Views
    astrosofistaA

    @dail

    Yes, that makes sense. As I said in my earlier post, the picture looks fine… but not nice.

  • Move the entire tag to another location in the same XML file

    6
    0 Votes
    6 Posts
    659 Views
    guy038G

    Hello, Hi, @tư-mã-tần-quảng and All,

    I forgot to explain my regex S/R :

    SEARCH (?s-i)(\h+<name>.+?)(\h+<id>.+?\R)

    REPLACE \2\1

    So :

    First, the part (?s-i) has already been explained by @alan-kilborn !

    Then, the part \h+<name> searches for some horizontal blank characters, followed with the string <name>, with this exact case

    Now, the part .+?, due to the s modifier, looks for the shortest non-null range of any char, even EOL ones, till … some blank chars, again, followed with the string <id>, with this exact case

    The two parts above are stored as group 1 because of the surrounding parentheses. Note that it, necessarily, ends with EOL chars, as followed with the <id> line !

    Then the part \h+<id> matches any horizontal blank chars, followed with the string <id>, with this exact case

    Finally, the part .+?\R matches the shortest non-null range of any char till… the next EOL chars, so ending the <id> line

    Again, the two parts above are stored as group 2 because of the surrounding parentheses.

    Note that the \R syntax stands for any kind of line-break ( \r\n for Windows files, \n for Unix files and \r for Mac files )

    In replacement, the \2\1 rewrites, in reverse order, the single-line group 2 ( line <id> ) and the multi-lines group 1

    Best Regards,

    guy038

  • search-replace

    4
    0 Votes
    4 Posts
    252 Views
    khk khkK

    @khk-khk Thanx to all - I’ll try

  • How to opt out of OAuth App but continue to have access to the NPP forum?

    5
    0 Votes
    5 Posts
    296 Views
    PeterJonesP

    @Alan-Kilborn said in How to opt out of OAuth App but continue to have access to the NPP forum?:

    Just a bit more, here…

    Thanks for the clarification: that was probably wise to add the extra information.

  • Need a copy of the red marked regions, after a "Mark All" operation

    13
    0 Votes
    13 Posts
    1k Views
    Alan KilbornA

    @guy038

    in case of overlapping matches

    Well, I meant non-overlapping matches of course. Often while marking data it is simpler to come up with 3 or 4 successive marking operations on different data in order to capture everything you want; coming up with one regex, while perhaps an interesting exercise, would likely be distracting from your at-hand task.

  • How to change Compair Plugin background color for unmatched lines?

    2
    0 Votes
    2 Posts
    240 Views
    Fran-3F

    Suddenly the light bulb went off…
    Click Plugins > Compare > Settings
    and then experiment with the colors to find a background color you like for mismatched lines.

  • Session bug in v7.8.5 ?

    13
    0 Votes
    13 Posts
    3k Views
  • 1 Votes
    4 Posts
    452 Views
    mccrispyM

    @PeterJones Thanks for the repro work! I had a strong suspicion that the location of <LanguageAutoComplete> is hardwired (why would it not have been included in <UserLocations> if there wasn’t some reason - presumably technical - for it?)

    Frankly, I consider it a Security issue to have user configurable files in %ProgramFiles(x86)% (I’m not alone in this regard!). Now on my machine Controlled Folder Access is enabled and I’m not sure how that interacts with UAC folder virtualisation (VirtualStore) for x86 apps and I’m not about to find out by experimentation. I’ll give it a few days then log a (security) bug.

  • Change the extension of the .txt file

    11
    0 Votes
    11 Posts
    10k Views
    Fake TrumF

    @PeterJones It is not always convenient like this. Perhaps today I am lucky, to meet you. I am using google to translate. And my question was brief, so Google did a good job. Once again very thank you for this

  • about selection

    47
    0 Votes
    47 Posts
    12k Views
    cisco779kC

    @guy038 tanxs you so much for your explanation and for modification to your reg-ex!
    now it works very well!
    I never said I had an example like yours, but maybe it’s my fault that I didn’t explain myself well …
    everything is working fine now. always thanks for your regex!
    cheers

  • Recent update changes language colors

    6
    1 Votes
    6 Posts
    2k Views
    Emma MorrisE

    Alright, thanks for your help everyone! Deleting the langs.xml file fixed it.

  • Ubuntu - no font displays 'ł' and some other Polish characters

    1
    1 Votes
    1 Posts
    202 Views
    No one has replied
  • XML Tools 3.0.3.3 delay N++ start for TWO minutes

    3
    0 Votes
    3 Posts
    254 Views
    JoseLuis C.B.J

    Thanks a lot @Ekopalypse. It works perfect (as expected!!)

  • How can I search a specific numbers in between two numbers?

    3
    0 Votes
    3 Posts
    998 Views
    guy038G

    Hello, @BDz48, @gurikbal-singh, and All,

    Don’t forget to select the Regular expression search mode for a correct result of the @gurikbal-singh’s regex

    Now, if you do not want a match when the number 6.. is surrounded with other numbers as, for instance, in text 497954316579791310932, use the regex \b(6\d\d|700)\b

    Best Regards,

    guy038