• Please Read This Before Posting

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

    Pinned
    15
    0 Votes
    15 Posts
    3k 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
    13k 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.

  • 0 Votes
    2 Posts
    31 Views
    PeterJonesP

    @bmazak said in I go to Style Configurator set a new font size Using Global Styles, save and nothing happens:

    When will this be fixed, it does not work.

    Something as fundamental as that obviously would have been noticed and fixed years ago. It is working 100%

    I know about the Mag glass Icon, but I want to set the default and it does nothing.

    My guess is that sometime back, you went to Global Override in the same dialog, and checked that checkbox. If the Global Override > Force font size choice for all styles is checkmarked, the Default Style size won’t change things; if you uncheck the Global Override, it will work.

    706a9f29-ab20-4d37-9fb0-e048264a184d-DefaultStyleWorks.gif

    My suggestion is to never use Global Override unless you know what it does, as explained in the User Manual here: https://npp-user-manual.org/docs/preferences/#global-styles:~:text=Global override [background and foreground]

  • Installation Bug?

    5
    1 Votes
    5 Posts
    142 Views
    mpheathM

    @xomx

    Thanks for the confirmation. Issue has been posted at Github #16896 .

  • Notepad ++ Plugin Geneator

    3
    0 Votes
    3 Posts
    61 Views
    Mark OlsonM

    @ISSUE-BADGE

    If your plugin concept is very simple, you might find it easier to write a PythonScript script rather than writing a full-blown plugin.

    If you need to write a full plugin and you’re used to working with garbage-collected languages like Python/Java/JavaScript, I’d recommend starting with NppCSharpPluginPack, which is a C# plugin template that I actively maintain.

  • Regexp multiline text replace when care about line delimiters

    3
    0 Votes
    3 Posts
    91 Views
    guy038G

    Hello, @i-hay, @coises and All,

    I found out an easy solution to your problem ! To that purpose, I used the the Edit > Line Operations > Reverse Line Order menu option, which is quite powerful when multi-lines regex is involved !

    So, let’s consider your INPUT text :

    No Name Relationship Date of Birth Date of Death Age Other information 1 Fred BLOGGS May 13 1800 93 yrs Brotherton Liz wife Apr 39 1840 64 yrs Ann DIRGEWALL (husband : Jay) Jny 2 1955 61 yrs Gable St 2 Unmarked grave 3 Unmarked grave 4 Jack GARDNER Dec 5 1967 75 yrs Grove Rd Jane wife Sep 2 1969 70 yrs Blackpool Mary JONES wife of Adam Jly 4 1930 5 Henry ALBERT Jny 4 1900 68 yrs Abbeyrange Lola wife Dec 28 1909 76 yrs Jack HARBOR son in law Jan 29 1976 49 yrs Julie wife May 29 1999 72 yrs

    First, select all the text, which needs re-numbering

    Use the Edit > Line Operations > Reverse Line Order menu option

    => You should get this temporary OUTPUT text :

    Julie wife May 29 1999 72 yrs Jack HARBOR son in law Jan 29 1976 49 yrs Lola wife Dec 28 1909 76 yrs 5 Henry ALBERT Jny 4 1900 68 yrs Abbeyrange Mary JONES wife of Adam Jly 4 1930 Jane wife Sep 2 1969 70 yrs Blackpool 4 Jack GARDNER Dec 5 1967 75 yrs Grove Rd 3 Unmarked grave 2 Unmarked grave Ann DIRGEWALL (husband : Jay) Jny 2 1955 61 yrs Gable St Liz wife Apr 39 1840 64 yrs 1 Fred BLOGGS May 13 1800 93 yrs Brotherton No Name Relationship Date of Birth Date of Death Age Other information

    Now, move back at the beginning of the reversed text

    Open the Replace dialog ( Ctrl + H )

    Uncheck all the box options

    FIND (?s)^\x20(?=(?:.+?)^(\d+))

    REPLACE \1

    Select the Regular expression search mode

    Click, once only, on the Replace All button

    => Your temporary text is then changed into : :

    5 Julie wife May 29 1999 72 yrs 5 Jack HARBOR son in law Jan 29 1976 49 yrs 5 Lola wife Dec 28 1909 76 yrs 5 Henry ALBERT Jny 4 1900 68 yrs Abbeyrange 4 Mary JONES wife of Adam Jly 4 1930 4 Jane wife Sep 2 1969 70 yrs Blackpool 4 Jack GARDNER Dec 5 1967 75 yrs Grove Rd 3 Unmarked grave 2 Unmarked grave 1 Ann DIRGEWALL (husband : Jay) Jny 2 1955 61 yrs Gable St 1 Liz wife Apr 39 1840 64 yrs 1 Fred BLOGGS May 13 1800 93 yrs Brotherton No Name Relationship Date of Birth Date of Death Age Other information Finally, redo a Edit > Line Operations > Reverse Line Order menu option

    Here we are ! We get your expected OUTPUT text, below :

    No Name Relationship Date of Birth Date of Death Age Other information 1 Fred BLOGGS May 13 1800 93 yrs Brotherton 1 Liz wife Apr 39 1840 64 yrs 1 Ann DIRGEWALL (husband : Jay) Jny 2 1955 61 yrs Gable St 2 Unmarked grave 3 Unmarked grave 4 Jack GARDNER Dec 5 1967 75 yrs Grove Rd 4 Jane wife Sep 2 1969 70 yrs Blackpool 4 Mary JONES wife of Adam Jly 4 1930 5 Henry ALBERT Jny 4 1900 68 yrs Abbeyrange 5 Lola wife Dec 28 1909 76 yrs 5 Jack HARBOR son in law Jan 29 1976 49 yrs 5 Julie wife May 29 1999 72 yrs

    Some details about the search regex :

    First, the (?s) syntax is an in-line modifier which has the same effect that checking the . matches newline option of the Replace dialog

    Then, the regex just looks for a space character \x20, at beginning of a line ( ^ ), ONLY IF it is followed with a look-ahead syntax ((?=..........) ), coming next

    This structure looks, itself, for any character, even new-line char(s), in a non-capturing group ( (?:....) ) , till the nearest character / line ( .+? ), beginning by a number ( ^\d+ ), that is stored as group 1, due to the embedded parentheses ( (\d+) )

    In replacement, any space character ( \x20 ) is then replaced with the contents of the group 1, which is our desired number !

    Best Regards,

    guy038

  • I've had to get rid of Notepad++ and I sad Help with BUG

    3
    0 Votes
    3 Posts
    65 Views
    CoisesC

    @BrenMar

    Please try downloading a portable version:

    https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v8.8.3/npp.8.8.3.portable.x64.zip

    Unzip that to a folder. Then open the folder and double-click the notepad++.exe file. That should open Notepad++. Try opening a file from File | Open. Then try opening a .txt file in regular Notepad and be sure that works.

    If all that works, then we know what’s going wrong has something to do with the installer (edit to add: or corrupted user settings), not the program proper. That doesn’t (yet) solve your problem, but it will help figure out where to look next.

    If you can’t run the portable version, or you can run the portable version but you can’t open a file, then that’s a different kind of problem.

    Please report back and be as detailed as you can about what you did and what happened.

  • Drag-and-drop not working in editor

    3
    0 Votes
    3 Posts
    55 Views
    CoisesC

    @DanielTheGreatAu said in Drag-and-drop not working in editor:

    a hidden setting somewhere that reverts Notepad++ to ‘normal’ Windows behaviour

    Settings | Preferences… | Editing 2 | Multi-Editing: uncheck Enable Multi-Editing to restore normal Ctrl+drag behavior.

    Shift key down, then drag on a selection, as far as I know, has never moved the selection in Notepad++ — it just changes the selection. You don’t need the Shift key to move a selection.

  • UDL highlight words between 2 keyword

    2
    0 Votes
    2 Posts
    54 Views
    PeterJonesP

    @taigama_coder said in UDL highlight words between 2 keyword:

    How can I use UDL to fromat it?

    That is beyond the capability of UDL: it’s designed for simple keyword and operator highlighting, and what you are asking would require a custom lexer…

    Normally, I would suggest the EnhanceAnyLexer plugin, which allows adding foreground coloring based on regular expressions… but since you are asking to highlight the whitespace, and whitespace by definition is not using the foreground color, I don’t think it’s features would help you.

  • easy way to move a file tab in the open file list

    2
    0 Votes
    2 Posts
    43 Views
    mathlete2M

    @Arne-Everhard it sounds like you’re referring to the functionality of the Move Tab Forward and Move Tab Backward options in the View > Tab menu. If so, both have default shortcuts, but they can be modified in the Main Menu tab of the shortcut mapper.

    Note: I actually had a difficult time finding those particular options in my own window at first; you may need to filter by “tab” to see these particular options right away.

  • Toolbar icons with 2560x1440 display

    9
    0 Votes
    9 Posts
    2k Views
    PeterJonesP

    After this conversation, I worked briefly on a workaround. I took the 16x16 standard-icon BMP files from the N++ source code, converted them to ICO format, then on all the files, I used an image program to upscale from 16x16 to 32x32, and make .ico files that have both 16x16 and 32x32 resolution files. The 32x32 are admittedly ugly (because they are just enlarged versions of the 16x16), but it’s at least a starting place, and will give the ability to have icons that are based on the standard icon set, but being able to use them in large-icon mode.

    Assuming a standard installation of Notepad++ (using %AppData% config directory), to use these dual-resolution ICO files:

    Go to %AppData%\Notepad++\ in Windows Explorer Create a directory toolbarIcons and a subdirectory toolbarIcons\StandardDualResolution Download the .ico files in https://github.com/pryrt/nppStuff/tree/main/StandardIconUpscaling/GIMP DualResolution 32x32 16x16 and unzip into toolbarIcons\StandardDualResolution\ update: added zipfile for easy download Rename toolbarButtonsConf_example.xml to toolbarButtonsConf.xml Edit that file, and near the end, change the line from <ToolBarIcons icoFolderName="" /> to <ToolBarIcons icoFolderName="StandardDualResolution" /> Save the toolbarButtonsConf.xml exit Notepad++

    The next time you run Notepad++, it should be using the custom versions of the standard icons. If you select Settings > Preferences > Toolbar and choose one of the “large” choices, it should use the custom icons in large (32x32).

    5ef248da-6716-4e80-a474-4147eb20d515-image.png

    This is obviously not ideal. But since there hasn’t been any official or publically-available 32x32 “originals” of those icons in 14+ years, that I can find, it’s the best thing I can think of for now. Someone with more image editing skill – or more AI skill – might be able to generate better 32x32 versions from the original 16x16 BMP files in the source code and create better-looking versions as ICO files. But until such happens, this might be a usable workaround.

  • Notetab++ novice questions

    3
    0 Votes
    3 Posts
    289 Views
    PeterJonesP

    A few months ago, I said,

    I don’t know of anyone who has done that and made them public.

    After this conversation, I worked briefly on a workaround. I took the 16x16 standard-icon BMP files from the N++ source code, converted them to ICO format, then on all the files, I used an image program to upscale from 16x16 to 32x32, and make .ico files that have both 16x16 and 32x32 resolution files. The 32x32 are admittedly ugly (because they are just enlarged versions of the 16x16), but it’s at least a starting place, and will give the ability to have icons that are based on the standard icon set, but being able to use them in large-icon mode.

    Assuming a standard installation of Notepad++ (using %AppData% config directory), to use these dual-resolution ICO files:

    Go to %AppData%\Notepad++\ in Windows Explorer Create a directory toolbarIcons and a subdirectory toolbarIcons\StandardDualResolution Download the .ico files in https://github.com/pryrt/nppStuff/tree/main/StandardIconUpscaling/GIMP DualResolution 32x32 16x16 and unzip into toolbarIcons\StandardDualResolution\ update: added zipfile for easy download Rename toolbarButtonsConf_example.xml to toolbarButtonsConf.xml Edit that file, and near the end, change the line from <ToolBarIcons icoFolderName="" /> to <ToolBarIcons icoFolderName="StandardDualResolution" /> Save the toolbarButtonsConf.xml exit Notepad++

    The next time you run Notepad++, it should be using the custom versions of the standard icons. If you select Settings > Preferences > Toolbar and choose one of the “large” choices, it should use the custom icons in large (32x32).

    5ef248da-6716-4e80-a474-4147eb20d515-image.png

    This is obviously not ideal. But since there hasn’t been any official or publically-available 32x32 “originals” of those icons in 14+ years, that I can find, it’s the best thing I can think of for now. Someone with more image editing skill – or more AI skill – might be able to generate better 32x32 versions from the original 16x16 BMP files in the source code and create better-looking versions as ICO files. But until such happens, this might be a usable workaround.

  • 0 Votes
    2 Posts
    64 Views
    Mark OlsonM

    @PATRICK-MULOT

    This is probably a job for regular expressions, but it depends to some extent on the specifics of your task.

    If you have a text file where every line is a word that you need to search for, you need to do a scripting solution. This kind of question has been asked many times before on the forum and I’m too lazy to look up which posts it was answered in, but a PythonScript script that would accomplish this would probably be as follows:

    Open the file with the words you’re searching for (hereafter WORD_FILE) Open the PythonScript console Paste in the command words = [x + ' ' for x in editor.getText().splitlines()] then hit Enter. Open the file that you want to search in (hereafter TARGET_FILE) Paste in the command lines = [line for line in editor.getText().splitlines() if any(line.startswith(word) for word in words)] then hit Enter Open a new file. Paste in the command editor.setText('\r\n'.join(lines)) and hit Enter Your new file will contain only the lines in TARGET_FILE that started with one of the words in WORD_FILE followed by a literal space character

    If you want to find lines that start with "fam " or "blah " (as in “fam” or “blah” followed by a literal space character), you can do that by:

    Use Search->Find... from the Notepad++ main menu (Ctrl+F with default keybindings) to open the Find form. Set Search Mode to Regular expression. Set Find what: to (?-i)^(?:fam|blah)\x20.* This regular expression has these basic parts: (?-i), ^, (?:fam|blah), \x20, and .* The (?-i) says that this is a case-sensitive search (so it would exclude lines starting with FAM for example) The ^ means that we only search at the start of a line The (?:fam|blah) matches fam or blah The \x20 is a different representation of a normal space character, which I sometimes use in regular expressions to make it more readable The .* matches the rest of the line (. is any non-newline character and * means match 0 or more of the preceding pattern) Hit the Find All in Current Document button. A form will pop up at the bottom of the Notepad++ window showing all the lines that matched.
  • 0 Votes
    5 Posts
    132 Views
    Robert Or Janet DiebelR

    @guy038 Thanx much for your help

  • Search/Find Dialog

    5
    0 Votes
    5 Posts
    197 Views
    Gerhard MunroG

    @guy038 @PeterJones

    I have checked the Registry Entries as requested:

    If your system doesn’t have MS Shell Dlg (or 2) installed, or even if it does, you might also want to look in your registry at HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\FontSubstitutes and see if MS Shell Dlg (or … 2) has an entry (for mine, those two have entries set to MS Sans Serif and Tahoma, respectively). If there is a FontSubstitutes entry set up on your computer, then you need to check that the resulting font exists in your c:\windows\fonts\ or equivalent directory. If not, then I have no idea what font that Windows OS will choose for that text.

    Regex.png

    Then checked the fonts:

    Screenshot 2025-07-27 165307.png

    I highlighted the 2 fonts, MS Sans Serif is named MS Sans Serif Regular but I think this is ok.

    I then checked my wife’s laptop, HP Firefly with Win 11 24H2 and Notepad++ is perfect. I gather it must be a graphics setting on my machine as I am having endless driver issues. I also read up a lot on this topic and it seems like it has something to do with scaling (not 100% sure here).

    Anyway, I apologize for this thread as I think this is an isolated incident on this specific laptop.

    The resolution is 3840 x 2400
    Scale : 250% (Recommended)

  • How to remove empty strings by notepad++?

    4
    0 Votes
    4 Posts
    106 Views
    mathlete2M

    @Раке if you still prefer using a Regex-based Search and Replace, you can add a Start of Line anchor (and perhaps the whitespace character class with a quantifier) to get similar results. For example, a search of ^\s*\r\n will remove all “empty” lines, including ones with various types of whitespace.

    Sample start text:

    c8db255e-b5b8-4d9d-b85c-db4da28525d5-image.png

    After running the S/R with the above Regex:

    a6fef303-5305-4289-9f25-8f4ebfd36ff9-image.png

  • [regex] Why unexpected hit?

    3
    0 Votes
    3 Posts
    110 Views
    S

    @PeterJones Thank you.

  • How to replace any text between some text without specifics

    3
    0 Votes
    3 Posts
    85 Views
    th3lifeoftorchT

    @PeterJones Very much appreciate this, you saved me a lot of time

  • 0 Votes
    5 Posts
    70 Views
    Paul LeoP

    @Paul-Leo Thanks, and sorry about missing the FAQ re: npp crashes after update/upgrade!