• Login
Community
  • Login
  1. Home
  2. General Discussion
Log in to post
Load new posts
  • Recently Replied
  • Recently Created
  • Most Posts
  • Most Votes
  • Most Views
  • K

    macro-writing

    Watching Ignoring Scheduled Pinned Locked Moved
    4 Apr 12, 2020, 3:45 PM
    Apr 11, 2020, 4:03 PM
    0 Votes
    4 Posts
    318 Views
    A Apr 12, 2020, 3:45 PM

    The discussion is continued HERE.

  • K

    macro-writing

    Watching Ignoring Scheduled Pinned Locked Moved
    4 Apr 12, 2020, 3:45 PM
    Apr 11, 2020, 9:20 AM
    0 Votes
    4 Posts
    681 Views
    A Apr 12, 2020, 3:45 PM

    The discussion is continued HERE.

  • K

    macro-writing

    Watching Ignoring Scheduled Pinned Locked Moved
    2 Apr 12, 2020, 11:46 AM
    Apr 12, 2020, 7:43 AM
    0 Votes
    2 Posts
    227 Views
    A Apr 12, 2020, 11:46 AM

    @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! :-)

  • A

    Auto-Completion settings are just plain odd

    Watching Ignoring Scheduled Pinned Locked Moved
    6 Apr 11, 2020, 10:41 PM
    Apr 10, 2020, 10:38 PM
    5 Votes
    6 Posts
    339 Views
    A Apr 11, 2020, 10:41 PM

    @dail

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

  • T

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

    Watching Ignoring Scheduled Pinned Locked Moved
    6 Apr 11, 2020, 10:08 AM
    Apr 10, 2020, 7:02 PM
    0 Votes
    6 Posts
    715 Views
    G Apr 11, 2020, 10:08 AM

    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

  • K

    search-replace

    Watching Ignoring Scheduled Pinned Locked Moved
    4 Apr 10, 2020, 4:04 PM
    Apr 10, 2020, 1:10 PM
    0 Votes
    4 Posts
    290 Views
    K Apr 10, 2020, 4:04 PM

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

  • F

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

    Watching Ignoring Scheduled Pinned Locked Moved
    5 Apr 10, 2020, 2:40 PM
    Apr 10, 2020, 12:53 PM
    0 Votes
    5 Posts
    339 Views
    P Apr 10, 2020, 2:40 PM

    @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.

  • R

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

    Watching Ignoring Scheduled Pinned Locked Moved
    13 Apr 9, 2020, 9:40 PM
    Apr 9, 2020, 5:47 PM
    0 Votes
    13 Posts
    1k Views
    A Apr 9, 2020, 9:40 PM

    @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.

  • F

    How to change Compair Plugin background color for unmatched lines?

    Watching Ignoring Scheduled Pinned Locked Moved
    2 Apr 9, 2020, 8:27 PM
    Apr 9, 2020, 7:59 PM
    0 Votes
    2 Posts
    255 Views
    F Apr 9, 2020, 8:27 PM

    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.

  • D

    Session bug in v7.8.5 ?

    Watching Ignoring Scheduled Pinned Locked Moved
    13 Apr 8, 2020, 4:14 PM
    Apr 3, 2020, 2:39 AM
    0 Votes
    13 Posts
    3k Views
    D Apr 8, 2020, 4:14 PM

    Fixed in the following commit:
    https://github.com/notepad-plus-plus/notepad-plus-plus/commit/a09c0a17dbdb4bb9a414a4a6fedf761987a80032

    Thank you for your help!

  • M

    autoCompletion folder location requires admin access - unlike other UDL files

    Watching Ignoring Scheduled Pinned Locked Moved
    4 Apr 7, 2020, 9:22 PM
    Apr 7, 2020, 4:36 PM
    1 Votes
    4 Posts
    501 Views
    M Apr 7, 2020, 9:22 PM

    @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.

  • Fake TrumF

    Change the extension of the .txt file

    Watching Ignoring Scheduled Pinned Locked Moved
    11 Apr 7, 2020, 6:03 PM
    Apr 7, 2020, 2:02 PM
    0 Votes
    11 Posts
    11k Views
    Fake TrumF Apr 7, 2020, 6:03 PM

    @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

  • cisco779kC

    about selection

    Watching Ignoring Scheduled Pinned Locked Moved
    47 Apr 5, 2020, 1:00 PM
    Apr 1, 2020, 7:24 AM
    0 Votes
    47 Posts
    14k Views
    cisco779kC Apr 5, 2020, 1:00 PM

    @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

  • Emma MorrisE

    Recent update changes language colors

    Watching Ignoring Scheduled Pinned Locked Moved
    6 Apr 4, 2020, 6:15 AM
    Apr 3, 2020, 4:55 AM
    1 Votes
    6 Posts
    2k Views
    Emma MorrisE Apr 4, 2020, 6:15 AM

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

  • k saK

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

    Watching Ignoring Scheduled Pinned Locked Moved
    1 Apr 1, 2020, 12:47 PM
    Apr 1, 2020, 12:47 PM
    1 Votes
    1 Posts
    214 Views
    No one has replied
  • JoseLuis C.B.J

    XML Tools 3.0.3.3 delay N++ start for TWO minutes

    Watching Ignoring Scheduled Pinned Locked Moved
    3 Apr 1, 2020, 11:44 AM
    Apr 1, 2020, 8:54 AM
    0 Votes
    3 Posts
    288 Views
    JoseLuis C.B.J Apr 1, 2020, 11:44 AM

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

  • BDz48B

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

    Watching Ignoring Scheduled Pinned Locked Moved
    3 Mar 30, 2020, 9:45 AM
    Mar 30, 2020, 3:43 AM
    0 Votes
    3 Posts
    1k Views
    G Mar 30, 2020, 9:45 AM

    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

  • Sarah DuongS

    Type of duplicate lines

    Watching Ignoring Scheduled Pinned Locked Moved
    25 Mar 30, 2020, 12:25 AM
    Mar 8, 2020, 6:15 AM
    0 Votes
    25 Posts
    6k Views
    Sarah DuongS Mar 30, 2020, 12:25 AM

    @astrosofista Yes, that is exactly what I need. It seems that there are some symbols I cannot write . It replaces the color or does not display when accompanied by another symbol.

  • Mark MarquesM

    Version 7.8.5 ( 32bits) not able to replace a comma correctly

    Watching Ignoring Scheduled Pinned Locked Moved
    5 Mar 29, 2020, 3:26 PM
    Mar 27, 2020, 4:40 PM
    0 Votes
    5 Posts
    344 Views
    G Mar 29, 2020, 3:26 PM

    Hi @mark-marques, @ekopalypse, @alan-kilborn and All,

    To control which plugin(s) is/are loaded on Notepad++ start :

    Close any opened N++ instance

    Reach your active plugins location

    For any plugin , NOT desired, simply change the name of its folder ( for instance, add a simple character at beginning or end of each name ! )

    Restart Notepad++

    For instance, my own 7.8.5 plugins folder contains the following subfolders :

    BetterMultiSelection ComparePlus Config doc DSpellCheck ElasticTabstops mimeTools NppConverter NppExport NppPluginDemo

    If I want to open Notepad++, without, let’s say, the DSpellCheck and the Npp PluginDemo plugins, simply rename these 2 subfolders, like below :

    BetterMultiSelection ComparePlus Config doc -DSpellCheck ElasticTabstops mimeTools NppConverter NppExport -NppPluginDemo

    OR

    BetterMultiSelection ComparePlus Config doc DSpellCheck_0 ElasticTabstops mimeTools NppConverter NppExport NppPluginDemo_0

    Best Regards,

    guy038

  • DariskyD

    Compile and run didn't show cmd

    Watching Ignoring Scheduled Pinned Locked Moved
    4 Mar 28, 2020, 7:35 PM
    Mar 21, 2020, 10:30 AM
    0 Votes
    4 Posts
    283 Views
    EkopalypseE Mar 28, 2020, 7:35 PM

    @Darisky

    Sorry, but I don’t understand your last post.
    Did you try my suggestion about using hello.cpp instead of hello.

The Community of users of the Notepad++ text editor.
Powered by NodeBB | Contributors