• 1 Votes
    2 Posts
    169 Views
    mkupperM

    @Vercinger How are you opening multiple files at once? I believe knowing that would both allow for reproducing the issue and suggesting workarounds.

    You have already found one workaround which is to use v7.8.6 but there is likely a better way.

  • Ask for support Perl5 new version & Perl6

    Locked
    4
    0 Votes
    4 Posts
    3k Views
    PeterJonesP

    To future readers:

    Scintilla eventually added a separate Raku lexer, and Notepad++ v8.6.6 and newer have the lexer enabled

  • 32- vs 64-bit (Intel): Which to use these days?

    2
    0 Votes
    2 Posts
    257 Views
    PeterJonesP

    @dcmdcmdcm ,

    If all your plugins have 64bit versions, then it was time to move as soon as they released the 64bit versions. If you have a plugin that isn’t in the 64bit list that you absolutely have to use, then you shouldn’t change to 64bit.

    That was the answer “years ago” as well.

    Since we don’t know what plugins are critical to your Notepad++ usage, there’s no way for us to answer you.

    If you look at your ?-menu’s Debug Info, it will tell you what plugins you are using (and if you share it here, tell us as well). And https://github.com/notepad-plus-plus/nppPluginList/blob/master/src/pl.x64.json is the list of all the 64bit plugins that the Plugins Admin tool knows about. If all your plugins are in that list, then you would likely have no difficulty in finally switching to 64bit. If one or more of your plugins aren’t in that list, you’ll have to look at their individual repos to determine whether they have 64bit versions. If you find any that don’t, ask yourself whether they are truly critical to your needs or not, then ask us if there are 64bit alternatives that will give you some or all of the same features that you need.

  • Page margins like in a word processor?

    14
    0 Votes
    14 Posts
    8k Views
    PeterJonesP

    @Stiggles said in Page margins like in a word processor?:

    The ability to add some top padding would be great. The top line of text has no padding at all.

    Did you read my last post in this discussion? The library that Notepad++ uses doesn’t have the feature to add top/bottom padding, so Notepad++ cannot make use of a non-existent feature. Someone who wanted that feature would have to request it from the library, they would have to implement it, and then Notepad++ would have to update its copy of the library. Since no one has taken step 1, saying “me too” is futile.

  • Way to tell if clipboard has column-block in it before pasting?

    11
    0 Votes
    11 Posts
    4k Views
    Alan KilbornA

    @Coises said:

    Curiously, because this current topic is really focused on “Way to tell if clipboard has column-block in it before pasting?” (from its title), it doesn’t, until @Coises posted, reference MSDEVColumnSelect.

    However, these topics do:

    https://community.notepad-plus-plus.org/topic/17272 Mar 11, 2019, 1:28 PM posting https://community.notepad-plus-plus.org/topic/19643 Jul 9, 2020, 1:56 PM (in script listing)

    And, Scintilla code discusses it, too, HERE.

  • Can't make default C++ style to highlight custom macros

    6
    0 Votes
    6 Posts
    670 Views
    PeterJonesP

    To future readers:

    As of v8.6.6, you don’t need my script anymore to enable the GLOBALCLASS keywords. Instead, follow the instructions in this post.

  • Backslash → jump to TAB intstead of spaces?

    2
    0 Votes
    2 Posts
    190 Views
    CoisesC

    @Shohreh Forgive me for asking the obvious, but I have to ask… did you try unchecking Replace by space (near the bottom right of your screen shot)? Does that not do what you want?

    If you mean that you want to use spaces for indentation in the document, but you want the backspace key in indentation to go back an indentation level instead of one space, the option to do that isn’t accessible from Notepad++ itself, but I think the Backspace unindents option in the ExtSettings plugin does that. You can install that from Plugins | Plugins Admin….

  • Identical Unicode characters are not highlighted when selected

    4
    0 Votes
    4 Posts
    230 Views
    Alan KilbornA

    @moninahh said in Identical Unicode characters are not highlighted when selected:

    So as not to create a new topic

    Go ahead and create a new topic.

  • 0 Votes
    4 Posts
    220 Views
    guy038G

    Hi, @john-goewie, @coises and All,

    @coises, I’ve analyzed your method and, really, your method is quicker and more efficient than mine ! However, for more than, let’s say, a dozen of lines to concatenate, I suppose that building the associate regexes would be tedious !

    BTW, I tried a variant of your method which works fine, too :

    In this variant, I prefered to not use the \t separator and included the EOL of groups 8 to 13 within the groups themselves !

    Thus, from this INPUT text :

    mklink /D "E:\Drum LIB\CLAP mklink /D "E:\Drum LIB\HIHAT mklink /D "E:\Drum LIB\KICK mklink /D "E:\Drum LIB\PERCUSSION mklink /D "E:\Drum LIB\CRASH mklink /D "E:\Drum LIB\SNARE mklink /D "E:\Drum LIB\STAB SAMPLECD1 - Techno - Clap SAMPLECD1 - Techno - Hihat SAMPLECD1 - Techno - Kick SAMPLECD1 - Techno - Perc SAMPLECD1 - Techno - Ride SAMPLECD1 - Techno - Snare SAMPLECD1 - Techno - Stab " " " " " " " " " " " " " " H:\SAMPLEBASE\SAMPLECD1 - Techno\SAMPLECD1 - Techno - Clap H:\SAMPLEBASE\SAMPLECD1 - Techno\SAMPLECD1 - Techno - Hihat H:\SAMPLEBASE\SAMPLECD1 - Techno\SAMPLECD1 - Techno - Kick H:\SAMPLEBASE\SAMPLECD1 - Techno\SAMPLECD1 - Techno - Perc H:\SAMPLEBASE\SAMPLECD1 - Techno\SAMPLECD1 - Techno - Ride H:\SAMPLEBASE\SAMPLECD1 - Techno\SAMPLECD1 - Techno - Snare H:\SAMPLEBASE\SAMPLECD1 - Techno\SAMPLECD1 - Techno - Stab " " " " " " "

    The regex S/R is a bit simplified and becomes :

    SEARCH (?-s)^(.*)\R(.*)\R(.*)\R(.*)\R(.*)\R(.*)\R(.*)\R(.*\R)(.*\R)(.*\R)(.*\R)(.*\R)(.*\R)(.*)

    REPLACE $1$8$2$9$3$10$4$11$5$12$6$13$7$14

    and, after 3 clicks on the Replace All button, we get :

    mklink /D "E:\Drum LIB\CLAPSAMPLECD1 - Techno - Clap" "H:\SAMPLEBASE\SAMPLECD1 - Techno\SAMPLECD1 - Techno - Clap" mklink /D "E:\Drum LIB\HIHATSAMPLECD1 - Techno - Hihat" "H:\SAMPLEBASE\SAMPLECD1 - Techno\SAMPLECD1 - Techno - Hihat" mklink /D "E:\Drum LIB\KICKSAMPLECD1 - Techno - Kick" "H:\SAMPLEBASE\SAMPLECD1 - Techno\SAMPLECD1 - Techno - Kick" mklink /D "E:\Drum LIB\PERCUSSIONSAMPLECD1 - Techno - Perc" "H:\SAMPLEBASE\SAMPLECD1 - Techno\SAMPLECD1 - Techno - Perc" mklink /D "E:\Drum LIB\CRASHSAMPLECD1 - Techno - Ride" "H:\SAMPLEBASE\SAMPLECD1 - Techno\SAMPLECD1 - Techno - Ride" mklink /D "E:\Drum LIB\SNARESAMPLECD1 - Techno - Snare" "H:\SAMPLEBASE\SAMPLECD1 - Techno\SAMPLECD1 - Techno - Snare" mklink /D "E:\Drum LIB\STABSAMPLECD1 - Techno - Stab" "H:\SAMPLEBASE\SAMPLECD1 - Techno\SAMPLECD1 - Techno - Stab"

    Then, the simple S/R, below, adds the missing \ character, right before the first SAMPLECD1 string

    SEARCH (?-i)[^\\](?=SAMPLECD1)

    REPLACE $0\\

    Giving the expected OUTPUT text :

    mklink /D "E:\Drum LIB\CLAP\SAMPLECD1 - Techno - Clap" "H:\SAMPLEBASE\SAMPLECD1 - Techno\SAMPLECD1 - Techno - Clap" mklink /D "E:\Drum LIB\HIHAT\SAMPLECD1 - Techno - Hihat" "H:\SAMPLEBASE\SAMPLECD1 - Techno\SAMPLECD1 - Techno - Hihat" mklink /D "E:\Drum LIB\KICK\SAMPLECD1 - Techno - Kick" "H:\SAMPLEBASE\SAMPLECD1 - Techno\SAMPLECD1 - Techno - Kick" mklink /D "E:\Drum LIB\PERCUSSION\SAMPLECD1 - Techno - Perc" "H:\SAMPLEBASE\SAMPLECD1 - Techno\SAMPLECD1 - Techno - Perc" mklink /D "E:\Drum LIB\CRASH\SAMPLECD1 - Techno - Ride" "H:\SAMPLEBASE\SAMPLECD1 - Techno\SAMPLECD1 - Techno - Ride" mklink /D "E:\Drum LIB\SNARE\SAMPLECD1 - Techno - Snare" "H:\SAMPLEBASE\SAMPLECD1 - Techno\SAMPLECD1 - Techno - Snare" mklink /D "E:\Drum LIB\STAB\SAMPLECD1 - Techno - Stab" "H:\SAMPLEBASE\SAMPLECD1 - Techno\SAMPLECD1 - Techno - Stab"

    BR

    guy038

  • Replace the space between 2 numbers with a slash

    6
    1 Votes
    6 Posts
    653 Views
    Thomas KlinghanT

    @Terry-R nice, it works, thanks :-)

  • Extracting text between two strings

    3
    0 Votes
    3 Posts
    756 Views
    Sanjeev SharmaS

    Thanks. It helped. :)

  • Notepad++ window flies between different monitors constantly

    3
    0 Votes
    3 Posts
    179 Views
    mkupperM

    @Nessa-Carson That seems like a mouse and or keyboard issue.

    An HP Spectre is a laptop that has a single monitor. Do you have a second monitor attached? Do you have an external mouse and or keyboard attached? Does your machine have one of those flat pad mice in front of the keyboard?

    If you have the flat pad mouse thing in front of the keyboard then plug an external mouse and external keyboard into the machine and try Notepad++ with those. The flat pad mouse things are notorious for causing issues as people touch them accidentally when using the keyboard.

    If you are using an external keyboard and mouse then unplug both and see if Notepad++ has issues using the mouse and keyboard built into the laptop.

  • HELP HOW TO INSERT text into blank lines with macro

    9
    0 Votes
    9 Posts
    497 Views
    Steve TrevellaS

    @Alan-Kilborn said in HELP HOW TO INSERT text into blank lines with macro:

    $0M50

    HI THANKYOU.
    I CAN MAKE THAT WORK!!
    MUCH APPRECIATED

  • 0 Votes
    5 Posts
    286 Views
    Terry RT

    @venkanna-gajjala

    I think the regular expression below seems to work well enough.

    Using the Replace function with search mode set to regular expression we have:
    Find What:[^\d]+
    Replace With:\r\n

    Like @mkupper solution it will also require a second step of removing the duplicate lines.

    Terry

    PS it does leave an initial empty line, which I don’t think causes any problems and is easily removed as a final step.

  • 0 Votes
    2 Posts
    257 Views
    PeterJonesP

    @greg-greg

    If you want help with a search/replace problem, you need to give us more to go on than that. Best practice is to include a half-dozen to a couple-dozen lines of example “before” and “after” text (using the </> button to put them in text boxes) – make sure if there’s sensitive/confidential info that you use dummy data that looks like the original (formatted the same, same combos of numbers vs letters, etc) but doesn’t reveal your secrets. Also make sure that your examples show some things that should match and some that don’t.

    See the Template for Search/Replace Questions, linked below, for more of how to ask such questions.

    ----

    Useful References Please Read Before Posting Template for Search/Replace Questions Formatting Forum Posts Notepad++ Online User Manual: Searching/Regex FAQ: Where to find other regular expressions (regex) documentation
  • 0 Votes
    5 Posts
    269 Views
    gamophyteG

    This takes me far and beyond and away further than I was before, thanks!!

    Because even now you can use that front loaded dot as an anchor to do way more, like clean it up if no container (section) encapsulating it, and if there is I can S&R to put it on the front - even if it’s done by selecting at a time.

    You’ve taken it far enough, thanks for your work!!

  • PHP instead <?php and php> {PHP} and {/PHP}

    7
    1 Votes
    7 Posts
    437 Views
    S

    @Ekopalypse
    Thank you for your help! what a pitty. (right now it is easier to just copy the code in between the working <php …)

  • Macros in v8.5.2 warning

    Locked
    3
    0 Votes
    3 Posts
    244 Views
    Mr-BrunesM

    @mkupper Tx for the alert - I’ve no idea what happened there. Feel free to delete this topic.

  • Macro warning message on upgrade

    5
    0 Votes
    5 Posts
    566 Views
    Mr-BrunesM

    @PeterJones

    Ok apols for late reply to your original request on how the warning could be rewritten.

    Some background - I used to work as a field sales tech consultant for a tier 1 global data storage manufacturer and so was well versed in getting beaten up on engagements, nearly always for things that I wasn’t directly responsible for, but hey you’re there and folks want to unload, and often with justification. We often ended up rewriting all sorts of customer docs, but also shipped cases of European beer for the devs.

    It’s especially hard if you’re involved with data security or content creation, since any issues impact productivity in terms of wasted time and worst of all, potential loss of content or even the fear of the latter.

    Other than the golden rule of Don’t Break Stuff, (and if you must then prepare everyone by explaining the heck out of it) the general themes were to consider your audience and the impact for all of them e.g.
    Who – are the affected users
    What – is the change
    Why – is the change req’d
    When - is the impact
    Where - can you go for more info and on how to roll-back.

    I’m sure folks will say this is all overkill, and it would be for a crappy new app that didn’t create content, but that isn’t the case here, and so there are expectations! 😉 Ok time to stop rambling.

    On this particular change, I fell at the first fence i.e. I had no idea whether I was affected. Only a fool would conclude that they would not be affected if they didn’t understand the warning!

    Now I see your reply is updated, so thanks for considering the issue! :-)

  • 0 Votes
    15 Posts
    2k Views
    Xuân-Thơ HOÀNGX

    @mpheath
    Thanks!
    Checked! These fixes are included in version 8.6.6 (currently in the RC2 phase).