• Please Read This Before Posting

    Pinned Locked
    1
    7 Votes
    1 Posts
    5k Views
    No one has replied
  • v8.7 Search Results Missing

    Pinned
    15
    0 Votes
    15 Posts
    1k Views
    xomxX

    This v8.6.9-v8.7.2 issue has been fixed (GitHub commit).
    The fix will be included in the next Notepad++ version (probably v8.7.3).

    @PeterJones
    I would leave this topic pinned for a while longer until the fix reaches most N++ users.

  • HELP: Having trouble with Macros in v8.5.3 or later

    Pinned
    28
    2 Votes
    28 Posts
    6k Views
    Mike NewmanM

    Moderator Note: The contents of this post were moved to a separate topic, Macro works normally, but fails when shortcut is Ctrl+Shift+C, because it’s actually separate from the >=v8.5.3 issue for this Topic.

  • How to disable FindHistory and FileEditViewHistory? auto-clear at exit?

    13
    0 Votes
    13 Posts
    242 Views
    mkupperM

    @Claudia-Svenson said in How to disable FindHistory and FileEditViewHistory? auto-clear at exit?:

    The “Recent File History” in configuration refers to only the <FileEditViewHistory>. I miss a corresponding option for <FindHistory>.

    That reminds me that there is a version of “find” that leaves a minimal history and another that leaves no history.

    If you are interested in a search that leaves “no history” then see Find (Volatile) Next (Ctrl+Alt+F3) / Find (Volatile) Previous (Ctrl+Alt+Shift+F3) in the manual and the manual section on Comparison between “Select and Find Next” and “Find (Volatile) Next”

    It turns out the non-volatile Ctrl+F3 or Ctrl+Shift+F3 searches leave a minimal history. The manual says they are added to the history but that’s not quite true meaning this may be a Notepad++ bug.

    If you have some text selected then using the keyboard you can do Ctrl+F3 or Ctrl+Shift+F3. Ctrl+F3 finds in the forward direction and Ctrl+Shift+F3 finds in the backwards or reverse direction.

    If you use either of those then you will discover it’s in the topmost part of the find history but it gets overwritten should you do another Ctrl+F3 style search or a normal search. It also does not get saved to Config.xml when Notepad++ exits, even if you have the <FindHistory> values set to something other than zero.

    Ctrl+F3 are Ctrl+Shift+F3 also available via the menus under Search / Select and Find Next and Search / Select and Find Previous. They are always a “normal mode” search meaning you would not be able to use the \ style escape codes available in extended searches nor the various features of regular expression searches.

    I have always relied on them as a “quick search” and depend on their normal mode operation as they are a quick way for me to search for regular expressions or things with \ as as Windows file paths. I knew they did not get added to the find history and had assumed that was a feature but now see that [the manual](https://npp-user-manual.org/docs/searching/#searching] says “The searched word or selection is stored in the find history.” That’s not quite true. They show up in the history but are not “added” to the history.

  • posting code (by copy & paste) with line numbers

    18
    0 Votes
    18 Posts
    312 Views
    Lycan ThropeL

    @PeterJones said in posting code (by copy & paste) with line numbers:

    @Lycan-Thrope ,

    If it’s automatically picking the D language, have you looked at Settings > Preferences > New Document > Default Language – does it say D instead of None (Normal Text)? If so, change that preference back, and it will go back to defaulting to normal text. (That setting cannot be affected by UDL, so I don’t see how your dBASE UDLs could be doing anything to influence it…)

    @PeterJones ,
    Thanks, this was the cause.
    Now that I think back, I think I was doing a help in the forum and used that to show the language setting and take screenshots…and forgot to put it back. DOH!!
    Back to normal…thanks for curing my forgetfulness. :-)

  • 0 Votes
    7 Posts
    112 Views
    dr ramaanandD

    @guy038 Thank you very much. @PeterJones I don’t come here to “fight” with anyone - I linked to the explanation of the SKIP/FAIL method by @guy038 just to help future readers to understand it. I am sorry if I have hurt you but that was not my intention. I request others to comment if any of my posts seem offensive and why they seem so (if they deem it so) - I will correct myself.

  • Bold font style change on Linux Mint

    12
    0 Votes
    12 Posts
    253 Views
    PeterJonesP

    @kapenike said in Bold font style change on Linux Mint:

    @PeterJones yes I agree, I believe the OP is ------. Keep it to reddit

    Either I have misunderstood what you were implying by that term, or I think you seriously misunderstood me somewhere along the way. I was never intending to insult or otherwise denegrate you – and I would never use the term that I think you were trying to obfuscate to refer to anyone.

    As @mathlete2 said, maybe you just forgot that you had different settings on the two; or, as all I was trying to say, you maybe didn’t notice that it was a plain text file on one machine and a syntax-highlighted file on another.

    Or maybe that wasn’t the cause at all: given the symptoms you described, and the resolution that you said works, I cannot, right now, think of anything else that would have matched your description on both sides of the equation, which is why I currently believe that; but if you have evidence to the contrary, then great. If you wanted to help figure out why things were behaving differently on Windows and Wine for you, then provide some more evidence, and we can try to help you figure it out; or if you’ve got a solution that works for you, and you don’t care about the cause, that’s fine – but I was honestly not in any way trying to insult or attack you.

  • On install regsvr32 has stopped working

    2
    0 Votes
    2 Posts
    56 Views
    xomxX

    @C-Bacca said in On install regsvr32 has stopped working:

    On windows Server 2013

    Do you mean Windows Server 2012 R2 (Windows 8.1 based)?

    (I can try to test the same in a VM but has to be sure which Windows…)

    @C-Bacca said in On install regsvr32 has stopped working:

    I have limited permissions to install on this dev machine so I installed

    From your error messages is clear that there is a problem with registering the Notepad++ context menu shell extension (NppShell). Since only “system-wide” registration (which in turn needs the admin-rights anyway) is currently supported for NppShell, I would simply choose to install without this shell extension during installation:
    npp-installer-no-NppShell.png

    Other workaround is to use a portable N++ version instead, e.g. here is the link to the latest v8.8 (x64): https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v8.8/npp.8.8.portable.x64.zip

    Just unzip that to your writable folder of choice and run there the Notepad++.exe. And portable N++ versions do not contain the NppShell at all, so no similar regsvr32 problem is possible…

  • How do I sort strings separated by commas?

    5
    0 Votes
    5 Posts
    54 Views
    Alan KilbornA

    @C-Bacca said in How do I sort strings separated by commas?:

    is there a way to make this a series of steps, like a macro,

    Yes, you should be able to record it and save it as a macro.
    Note that Step 1 would not be part of the macro, but would be something that you have to do before running the macro.
    For more on macros see HERE.

  • Use mouse browser back/forward button to rotate vertical tabs

    3
    0 Votes
    3 Posts
    88 Views
    Alan KilbornA

    @mkupper said:

    Do you want to flip the behavior for what happens when you use the keyboard plus mouse wheel or do you want to flip the behavior for what happens when you use the keyboard only to move around.

    @Ariel-Diamond makes it pretty clear what is wanted:

    The feature to cycle through tabs with the mouse back/forward buttons is quite handy

    Is there a setting to swap this behavior

    So IMO it isn’t worth it to explain keyboard-based behavior as a “solution”.

    @Ariel-Diamond :

    Are you open to a script-based solution to your problem? If so, in THIS other topic I show a script that allows “hooking” the functionality of the forward/back buttons in order to change their functionality.

    Although I haven’t done it, it appears that script could be slightly altered in order to swap button functionality.

    Let us know if you’d like to go down that road, and can’t modify that script yourself and need help.

    BTW, I agree with you about the desire to “swap” the behavior; the other topic I linked to above has me stating: “…I’ve changed the code to swap the functionalities.”

  • Is the shortcut mapper dialog box broken?

    9
    1 Votes
    9 Posts
    178 Views
    mkupperM

    @PeterJones said in Is the shortcut mapper dialog box broken?:

    Could you download the appropriate artifact for your installed Notepad++, and see if this build fixes it for you?

    I’m now using both the MSVC.x64.Release and MSVC.Win32.Release Notepad++.exe files. The shortcut mapper issue has been fixed. Thank you @PeterJones

  • Grouping tabs and group renaming.

    4
    0 Votes
    4 Posts
    76 Views
  • need help to look for a word

    10
    0 Votes
    10 Posts
    196 Views
    PeterJonesP

    @dr-ramaanand said in need help to look for a word:

    simply because it is easier

    That’s apparently a matter of opinion. To me, negative lookbehind, where it’s telling you “look behind the current position, and make sure it’s not XYZ” is a lot easier to read/understand than “match something, then say, wait no, I don’t actually want to match that, let’s fail this whole path and move on to the alternation”. (And, from what I can tell, that’s not really a good explanation of skip+fail, because it takes our regex guru pages of text to explain it, whereas I can successfully convey the meaning of a negative lookbehind in one sentence.)

    Since your first version of the skip+fail post was wrong, and you couldn’t tell this immediately, even after it was pointed out to you that it was wrong, I am not convinced that it’s truly as “simple” – even for you – as you are implying.

    I am going to stick with recommending solutions that i could explain if necessary; I will only personally link to the skip+fail formula if I know of no other way to do something (and I wouldn’t tell anyone it’s “simple”)

    But if it truly makes more sense to you than a negative lookbehind, that’s great for you; everyone is different.

  • Cannot select bold character in replace in files

    8
    0 Votes
    8 Posts
    59 Views
    Alan KilbornA

    @Game-Movies:

    This is indeed what your data looks like:

    <strong>$1</strong>!

    Your search screen capture shows that you are using Regular expression search mode. This isn’t going to allow you to match the $ as that is a special character.

    You’d want:

    <strong>\$1</strong>!

    But if you remove that, wouldn’t you also want to remove the line (now empty) that it is on as well? And what about the <p> and </p> lines that wrap it?

    I get the sense that you are just kind of hacking at this, and are likely to end up with a mess in the end.

  • Negative lookbehind regular expression not working on Notepad++

    43
    0 Votes
    43 Posts
    929 Views
    dr ramaanandD

    @guy038 Oui, merci beaucoup!

  • Find 'Not Found' Matches in list

    6
    0 Votes
    6 Posts
    148 Views
    guy038G

    Hi, @fern99, @terry-r, @mkupper and All,

    An other example :

    To list all files which do NOT contain the strings ABC AND JKL AND XYZ, in upper case, from your opened documents, use :

    FIND (?s-i)(?=\A.*(?:ABC|JKL|XYZ))(*SKIP)(*F)|\A.

    Check the Wrap around option

    Click on the Find All in All Opened Documents button

    REMARK : Do keep the LAST regex dot ( . ), after \A. If omitted, consecutive searches of this regex does *NOT give the same results ! ( Bug ? )

    BR

    guy038

  • 0 Votes
    6 Posts
    96 Views
    mpheathM

    @byzod

    This issue mentions about the unfolding that can happen with numerous lexers.

    https://github.com/notepad-plus-plus/notepad-plus-plus/issues/12121

    I posted a LuaScript script in a comment in that thread that trades the behavior for another behavior by changing the editor.AutomaticFold setting temporarily in the 2nd script. Certain characters will set the automatic folding off which changes the header fold lines to become invisible sections and back again once continue editing. It is not a solution but rather a swap of side-effects to help to keep the current fold state.

    I have little knowledge of AutoHotkey syntax and it’s UDL issues so at the moment cannot offer an updated LuaScript script for calling editor.AutomaticFold.

    The objective-c lexer seems unaffected with /* multi-line comments and not sure why yet compared to looking at the lexers source code. Obviously the styling continues on past the folding though why it does not open the folds seems like possibly the folding is delayed in some lexers and so like the LuaScript script does is to cause a delay though that is just a theory at the moment.

  • Notepad++ not remembering where the current file is saved

    3
    1 Votes
    3 Posts
    76 Views
    Ben HardyB

    @PeterJones yes that was it!
    So indeed it was an easy one - you’d think I would have figured that out. Haha
    Thank you for pointing me to the setting!

  • How to find a comma that is embedded in a string?

    3
    1 Votes
    3 Posts
    71 Views
    John BlueJ

    @PeterJones, thank you so much!

  • Function List does not work properly after update

    3
    0 Votes
    3 Posts
    70 Views
    PeterJonesP

    @Annie-Chuang ,

    In addition to @Alan-Kilborn’s request, you can also go to ?-menu’s Debug Info, and paste that here.

    Please also tell us the full path of the filename where you put the XML file – was it c:\users\___\AppData\Roaming\Notepad++\functionList\XyzPdq.xml or c:\Program Files\Notepad++\functionList\XyzPdq.xml or somewhere else?

    I referred to many documents

    Unfortunately, you don’t tell us which ones, so we cannot know whether they were telling you the right thing, or not.

    Here are some reasonable documents to consult:

    User Manual: Function List = https://npp-user-manual.org/docs/function-list/#how-to-customize-function-list User Manual: Function List Config Files = https://npp-user-manual.org/docs/config-files/#function-list Including instructions on how to upgrade from a v7.9-or-earlier FunctionList (from before November 2020) to one that works with modern Notepad++ = https://npp-user-manual.org/docs/config-files/#upgrading-old-function-list-entries Community Forum FAQ: Function List Basics = https://community.notepad-plus-plus.org/topic/19480/faq-function-list-basics

    re-created the XML file and put it into FunctionList Folder

    As per the User Manual, there are two files that need to be edited to add the FunctionList – you need to have the XML specific to your language, and you need to edit the functionList\overrideMap.xml – if you didn’t do the latter, then just creating the XML isn’t enough.

    Also, you have to make sure it’s named correctly, and that you’ve got your User Defined Language (UDL) already set up and working, too.