• Please Read This Before Posting

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

    Pinned
    14
    0 Votes
    14 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.

  • The "OPEN" window is now full screen

    7
    0 Votes
    7 Posts
    2k Views
    mkupperM

    @Susan-Pemble Besides the things @PeterJones suggested you could also try double clicking the title bar area at the top of a window. That will toggle the window it between being a resizable “window” and being full screen maximized.

    It may also help for you to post a screen shot of the window you are asking about much like the screen shot you made of Notepad++'s About dialog box in your first post.

  • Disabling clicking beyond end of line

    8
    0 Votes
    8 Posts
    2k Views
    Jim SageJ

    Thanks for straightening this out, it was driving me crazy!

  • Advance Replace including right trim (repost with example)

    15
    0 Votes
    15 Posts
    306 Views
    Alan KilbornA

    @Mike-Albers said:

    (?s)^(?:[^\r\n;];){N}.{0,3996}\r\n|^((?:[^\r\n;];){N}.{0,3996}).?\r\n|^(?:[^\r\n;]?)\r\n

    Unfortunately, your regular expression was corrupted because you didn’t post it correctly.
    Probably a moderator will come along and examine your “raw” original post and correct it.

  • How to enable syntax highlighting for *.ps1 Powershell script files?

    4
    0 Votes
    4 Posts
    106 Views
    PeterJonesP

    @Claudia-Svenson said in How to enable syntax highlighting for *.ps1 Powershell script files?:

    How can I enable syntax highlighting for *.ps1 Powershell script files?

    Which Theme are you using? It’s possible that your theme file is out-of-date, or that you are a using a theme that has never had the powershell highlighting added, which would prevent Notepad++ from syntax highlighting, even when it is named blah.ps1.

    Please see my post here explaining why; and the User Manual’s Themes: Keeping Stylers/Themes Up-to-date entry for more.

  • It changes the encoding every time I open it.txt file

    4
    0 Votes
    4 Posts
    88 Views
    Alan KilbornA

    @xomx

    The problem with uncheckmarking Auto detect character encoding is that most times you want Notepad++ to autodetect the encoding.
    It’s only when it does it wrongly that you don’t want it to. :-)

  • Stop window size from saving to the cloud

    29
    0 Votes
    29 Posts
    460 Views
    Lycan ThropeL

    @Lycan-Thrope ,
    In hindsight, and after re-reading the issue, it seems that other than the app change removing the AppPosition from the config.xml file(unlikely?), @Alan-Kilborn 's suggestion would be the best for using his GoogleDrive Cloud setup with just one config.xml for multiple machines. He has already rebuffed that, so unless he reconsiders, I guess we’ll have to wait and see if his feature request gets approved and implemented. Moving on.

  • [formatting] Autocomplete, auto indent, insert custom snippets

    4
    0 Votes
    4 Posts
    58 Views
    Alan KilbornA

    @Mark-Olson said:

    the core developers of Notepad++ prefer Microsoft Visual Studio to Notepad++ for working on the Notepad++ source code. Make of that what you will.

    That’s probably because an IDE is wanted for this work, and, as you say, Notepad++ is not the greatest IDE.

    and most major programming languages (like the C or C++ it appears you are writing) have better productivity tools elsewhere.

    Well, I for one have done pretty well with only Notepad++ for embedded C/C++ work, as well as Python work.

  • Run multiple search and replace - one after another

    5
    0 Votes
    5 Posts
    89 Views
    Mark OlsonM

    @Ramses505 said in Run multiple search and replace - one after another:

    Out of interest - can I run some sort of python script that would do this as well ?

    Yes. If you already know Python, the PythonScript plugin can let you automate Notepad++ with Python.

    If you don’t know Python, this forum is not the place to discuss how to learn Python. There are countless tutorials on the internet for that purpose. I’ll just mention the re library and leave it at that.

  • Unable to see Data in the Notepad++

    26
    0 Votes
    26 Posts
    2k Views
    PeterJonesP

    @mathlete2 said in Unable to see Data in the Notepad++:

    FWIW, the Delete part was misleading; the actual instructions say to rename the config file, which backs it up.

    You are right, they gave conflicting instructions, saying to “delete/reset” the config file, but then “actually” only saying to rename it. But in general, their advice was bad – and elsewhere, in posts that another moderater had already deleted, that person spammed with links to their own website, which I confirmed had nothing to do with Notepad++, despite claims in the spam posts that going to their website would help solve a N++ problem. They were a spammer, probably assisted with generative AI posts, both of which are forbidden here and grounds for immediate banning.

  • Replace Notepad on Windows 11

    22
    0 Votes
    22 Posts
    14k Views
    Marcel BosmaM

    @jadelise

    Amazing, that was the tweak i needed,

    Running PS 7.5 within Win Terminal, i’m bound to wins terminal business related, but a big downside is not being able to switch out the core text editor, MS pushing their own products i get it. upside is now i don’t have to keystroke 2 times a ++ when editing is needed hehe,

    so big big thanks and head off to you sir 🫡

  • Running external app on window content?

    3
    0 Votes
    3 Posts
    177 Views
    PeterJonesP

    Ah, right. I’ve written so many FAQ for the Community, I forgot FAQ: How do I … Convert my Text exists. That might explain things better, since it had more time put into writing it.

  • RegEx Help with Backreference I think

    58
    0 Votes
    58 Posts
    1k Views
    Robert Or Janet DiebelR

    @guy038 Sorry, that does work. I somehow slipped in a space before the RegEx in the MACRO

  • Notepad++ blank all the time, even with existing files

    4
    0 Votes
    4 Posts
    101 Views
    Alfonso MuñozA

    @PeterJones Thanks a lot for your reply. It was that setting. I have the latest Npp version and it is a checkbox for me. I disabled the DirectWrite, restarted and characters are again visible.
    I don’t recall changing that setting in the past, and I don’t think I have installed any extension recently, so I don’t know how this could have happened.
    It could be that the setting was like that already but something in windows changed. I don’t know. But once again many thanks!

  • Running a macro on all the open docs ?.

    51
    0 Votes
    51 Posts
    893 Views
    Robert Or Janet DiebelR

    @Alan-Kilborn Thank you Alan.

  • Npp v8.7.8 or later hangs for `^.{0,20}` at the end of a file

    5
    1 Votes
    5 Posts
    99 Views
    mpheathM

    @Coises said in Npp v8.7.8 or later hangs for `^.{0,20}` at the end of a file:

    Leading comma within curly braces is not a valid syntax, so it’s searching for the beginning of a line followed by any one character and then the literal characters {,20}.

    Python’s re allows that syntax of omitting the minimum repetition. To use {,20} instead of {0,20} would be like learning a bad habit compared to Boost or other regex libraries.

    https://www.pcre.org/original/doc/html/pcrepattern.html quote:

    An opening curly bracket that appears in a position where a quantifier is not allowed, or one that does not match the syntax of a quantifier, is taken as a literal character. For example, {,6} is not a quantifier, but a literal string of four characters.

    This is stated explicitly that {,6} is a “literal string”.

  • 0 Votes
    6 Posts
    72 Views
    David HimmelsteinD

    @PeterJones That fixed the issue. Thank you for your help!

  • Line operation that deletes first word on each line

    2
    0 Votes
    2 Posts
    36 Views
    Alan KilbornA

    @Sam-J said in Line operation that deletes first word on each line:

    Is this functionality still available?

    Not exactly.

    But you can do a regular expression replacement:

    Find: (?-s)^\w+ +(.*)
    Replace: ${1}