• Good news

    4
    0 Votes
    4 Posts
    265 Views
    Alan KilbornA

    @abdulbadii

    OR…you can just create your own forum for discussion of your fork, and don’t muddy the waters here!
    Thanks.
    :-)

  • Java highlighting seems broken

    5
    0 Votes
    5 Posts
    693 Views
    KronzkyK

    Ok, I figured it out…
    Turns out that the langs.xml file in my profile folder was seriously outdated. Many languages (among them Java) were missing, and once I’ve updated it with a new version I am now getting proper highlighting of Java.

  • Uh oh, virus commentary pending?

    5
    3 Votes
    5 Posts
    235 Views
    Alan KilbornA

    @dinkumoil said in Uh oh, virus commentary pending?:

    see my comment at the issue tracker entry.

    Yes, it’s why I titled this thread with “Uh oh” :-)

  • Launching tail-f from the command line.

    14
    0 Votes
    14 Posts
    3k Views
    EkopalypseE

    This PS, saved as startup.py (user NOT machine and PS configuration changed from LAZY to ATSTARTUP) should do the trick

    e6fb0b18-db39-4bab-a14c-ebdea5b99411-image.png

    from Npp import notepad, MENUCOMMAND if '-tailmode' in notepad.getCommandLine(): notepad.menuCommand(MENUCOMMAND.VIEW_MONITORING)

    and npp like this notepad++.exe -multiInst -nosession "FULL_PATH_OF_THE_FILE" -z -tailmode

  • Delete number strings in the middle of lines of data

    20
    1 Votes
    20 Posts
    4k Views
    guy038G

    Hi, @craksoft, and All,

    You said :

    So this long thing (?-s)(?<=\d{4}-\d\d-\d\d)\h+.{8} is 6 number ?

    I don’t know what you means, exactly !?

    The regex expression (?-s)(?<=\d{4}-\d\d-\d\d)\h+.{8} deletes blanks characters and the next 8 characters, when preceded by a date, with the YYYY-MM-DD format. No more, no less :-)

    BR

    guy038

  • Notepad++ losing unsaved documents

    5
    0 Votes
    5 Posts
    1k Views
    Alan KilbornA

    @Jack-Adrian-Zappa said in Notepad++ losing unsaved documents:

    but that means that some update turned it off,

    Maybe “some update” was pretty smart, protecting you from features currently in question. :-)

    I would think that should be a priority to fix.

    There’s been some attempts.

  • "Always on top" deactivation

    2
    0 Votes
    2 Posts
    243 Views
    EkopalypseE

    @Hadi-Jam

    if you want it to be always on top then start npp with the command line paramter -alwaysOnTop.

  • 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
    290 Views
    Alan KilbornA

    The discussion is continued HERE.

  • macro-writing

    4
    0 Votes
    4 Posts
    594 Views
    Alan KilbornA

    The discussion is continued HERE.

  • macro-writing

    2
    0 Votes
    2 Posts
    205 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
    308 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
    650 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
    241 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
    290 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
    234 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
    2k Views