• Please Read This Before Posting

    Pinned Locked faq newbie
    1
    4 Votes
    1 Posts
    12k Views
    No one has replied
  • FORUM: Posting Queue

    Pinned
    10
    1
    12 Votes
    10 Posts
    14k Views
    Ivy_PearsonI
    Thanks for the update, Peter. Totally understand the need for a posting queue—spam is getting tricky these days. Hopefully, it won’t take long to get posts approved once you earn reputation!
  • Tab spacing copying from Notepad++ into WordPress

    9
    0 Votes
    9 Posts
    331 Views
    Robk BlueR
    Don’t worry I googled it.
  • 1 Votes
    9 Posts
    481 Views
    guy038G
    Hi, @mpheath and All, @mpheath, from your advice, I finally chose the following process : First, run a Edit > Blank Operations > TAB to Space option Then run the regex replacement below, where C represents the maximum number of chars after you want a line-break : SEARCH [\x20\r\n]*\z|(?-s)^(?=.{C+1,}).{1,C}\K(?:\x20*\R|\x20+) REPLACE \r\n for Windows files    or    \n for Unix files Finally, run a Edit > Blank operations > Trim Trailing Space option Remarks : I began the regex with [\x20\r\n]*\z which will replace possible mixed range of spaces and new lines, at the very end of current file, with a single line-ending I used the (?-s)^(?=.{C+1,}) ( instead of the (?-s)^(?=.{C+1}) as it seems slightly faster within huge files ! Compare to your regex, I still wanted to consider all spaces, possibly followed with a line-break. So, the part .{1,C}\K(?:\x20*\R|\x20+) Note that the final Trim Trailing Space action is necessary because of this specific case with a splitting after column 40 12345678901234567890123456789012345 ABCDE 12345678901234567890123456789012345 ABCDE Now, let’s try it out with a concrete example : Double-click on https://www.gutenberg.org/cache/epub/2701/pg2701.txt => The text of the novel Moby Dick or The Whale should appear Go to the second occurrence of the string CHAPTER 1. Loomings. Select from this line to the line END OF THE PROJECT GUTENBERG EBOOK MOBY DICK; OR, THE WHALE, excluded Paste it in a N++ new tab and name it Moby_ORG.txt So, the Moby.ORG.txt file should begin and end with : Call me Ishmael. Some years ago—never mind how long precisely—having little or no money in my purse, and nothing particular to interest me on shore, I thought I would sail about a little and see the watery part of the world. It is a way I have of driving off the spleen and regulating the circulation. Whenever I find myself growing grim about ... ... ... ... unharming sharks, they glided by as if with padlocks on their mouths; the savage sea-hawks sailed with sheathed beaks. On the second day, a sail drew near, nearer, and picked me up at last. It was the devious-cruising Rachel, that in her retracing search after her missing children, only found another orphan. In other words : Line 1 EMPTY Line 2 FIRST line of text Line 20,707 LAST line of text Line 20,708 = \z As this file seems already wrapped to 71 chars, I decided to do, FIRST, an intelligent un-wrapping ! I verified that there was no tabulation, nor any trailing space in the Moby_ORG.txt file Then I noticed that 43 lines began with one or two space characters, without any real utility. So, I ran the Edit > Blanck operations > Trim Trailing Space option To get a correct un-wrapping process, we need to use the following regex S/R : SEARCH (?-s).+\K\R(?=.+) ( Do not insert a ^ character between the parts (?-s) and .+ ) of this regex ! ) REPLACE \x20 Finally, I saved the changes and renamed the Moby_ORG.txt as Moby_To_Wrap.txt So, the Moby_To_Wrap.txt file begins and ends as below : Call me Ishmael. Some years ago—never mind how long precisely—having little ... There now is your insular city of the Manhattoes, belted round by wharves as ... Circumambulate the city of a dreamy Sabbath afternoon. Go from Corlears Hook ... ... ... ... ... “AND I ONLY AM ESCAPED ALONE TO TELL THEE” Job. The drama’s done. Why then here does any one step forth?—Because one ... It so chanced, that after the Parsee’s disappearance, I was he whom ... In other words : Line 1 EMPTY Line 2 FIRST line of text Line 4,884 LAST line of text Line 4,885 = \z The second line of your script is always : local maxLineLength = 78 And the Settings > Preferences... Margins/Border/Edge > Vertival Edge Settings only contains the 78 value Then I copied the Moby_ORG.txt file three times, as Moby_Regex.txt, Moby_Lua.txt and Moby_Ctrl-I.txt and I applied : Your script against the Moby_Lua.txt file, The Edit > Line Operations > Slipt Lines option against the Moby_Ctrl-I.txt The following regex S/R against the Moby_Regex.txt SEARCH [\x20\r\n]*\z|(?-s)^(?=.{79,}).{1,78}\K(?:\x20*\R|\x20+) REPLACE \r\n Upon comparison, it turns out that these three files are completely different ! Compared to the Moby_Regex.txt file , I noticed that your Moby_Lua.txt sometimes grasps : More than it should, as, for example, in the lines : “Who-e debel you?”—he at last said—“you no speak-e, dam-me, I kill-e.” And so saying with a wrapping after 84 chars [image: 1793374535176-a1299916-7d59-4c0b-a524-c5edf237ba4e-image.jpeg] “Oh, I don’t mind ’em, sir,” said Archy; “I knew it all before now. Didn’t I hear ’em with a wrapping after 85 chars [image: 1793374577115-f376a0b5-7d95-4f82-80f8-54c71394606e-image.jpeg] Less than it should, as, for example, in lines : the Stoics to enable you to grin and bear it. But even this wears off in, with a wrapping after 72 chars [image: 1793374617791-130645ce-362a-43a6-bf62-c511f338cdac-image.jpeg] knowingly, would thereby render yourself liable to a criminal, with a wrapping after 61 chars [image: 1793374649953-eb346fc2-0eb6-445c-bc6f-1d4ef581b4e9-image.jpeg] Not important, though. Just in case you would work on your script a little more ! Now, using this long text ( the Moby_To Rewrap.txt file ), I confirm that the regex, below, exactly mimics the Ctrl + I feature : SEARCH (?-s)^(?=.{78})(?:.{1,76}\x20|.{77})\K REPLACE \r\n for Windows files    or    \n for Unix files However, note that the Edit > Line Operations > Split lines operation leaves a trailing space on all lines of a paragrah but the last one ! I think that further investigation would be useless and I’ll personally just use the method, shown at the beginning of this post, when I need to wrap any text ! Best Regards, guy038 Oh, I almost forgot something important : When you select some text or all contents of a file and execute the Edit > Line Operations > Split Lines option : The View > Word wrap must be OFF The View > Show Symbol must be OFF
  • PHP Lang: Word vs Keyword

    3
    0 Votes
    3 Posts
    226 Views
    Laurie StearnL
    @PeterJones Good info on StyleID, thanks.
  • rename files

    4
    0 Votes
    4 Posts
    501 Views
    S
    Regex is definitely the way to go for this kind of filename cleanup in Notepad++. It’s great how a simple search-and-replace can handle a whole list of filenames at once instead of renaming each one manually. Just make sure to test it on a few files first to avoid any unexpected changes.
  • Windows list / Entry for the current tab not visible initially

    5
    2 Votes
    5 Posts
    479 Views
    fml2F
    For the reference: I’ve created https://github.com/notepad-plus-plus/notepad-plus-plus/issues/18554.
  • Cannot Update Plugins

    4
    0 Votes
    4 Posts
    586 Views
    PeterJonesP
    @steeve-wick , That’s almost a direct quote of what I said a month ago. Were you trying to add new information?
  • dark theme preference on main website doesn't work as expected.

    17
    2 Votes
    17 Posts
    1k Views
    PeterJonesP
    @Lycan-Thrope said: Did you make the change permanent No. I made an Issue, so Don can fix it. I don’t have write access to the main website. Update: Oh, I see, after I went through the approvals, that @myfancytextgenerator already guessed that mine was just an issue.
  • What are your favorite Notepad++ features for everyday coding?

    4
    0 Votes
    4 Posts
    290 Views
    PeterJonesP
    @T.I-Digital-Solutions said: I mainly use Notepad++ for working with HTML, checking page source, and making quick edits during SEO tasks, so I was curious about features that could make those jobs easier. With those specifics, then I’d say good plugins to try would be HTML Tag, Preview HTML, and XMLTools. UDL is not useful for HTML, because the HTML lexer that’s built into Notepad++ is better than anything that the simple User Defined Language system can handle. But if you also deal with the server configuration files (like .htaccess files), then the UDL Collection has a UDL available for Htaccess, for example.
  • Silent update is way too loud and intrusive

    8
    2
    0 Votes
    8 Posts
    508 Views
    PeterJonesP
    @Nephilimi said: I’m actually curious now, is the general population not using this on their servers? There are only a handful of people who have come to the Community Forum from the “server” perspective – and most of those were coming to say, “why don’t you use installation-toolkit-xyz to make IT’s life easier”, and never really went into detail into how they were deploying to that point. And though it might not meet all the needs, the newer MSI installer (new to v8.8.8 in Nov 2025) seems to have quieted those types of inquiries down. So in the Community, while we get great insight into how individual/personal users use Notepad++, we don’t have much insight into the server-deployed side of things. (In our minds – or, at least in my mind – the “general population” are individual users, not server-based users. I have no clue how the numbers actually pan out between the two user-bases; we just get a individual-user-bias in the Forum.) But my guess is that the server-admins had auto-update turned off when they’d install it: either through pushing a custom config.xml to each user’s %AppData% folder, or through using a doLocalConf or -settingsDir to point to a more central config location (or, once the feature was enabled, bundling their own config.xml in the installation directory, which then gets used as the template for new %AppData%-based config.xml), or through deleting gup.exe in the old days or now using disableNppAutoUpdate.xml in the install directory
  • [FORK] Tangential Discussion about what advice is "on topic"

    35
    1 Votes
    35 Posts
    16k Views
    M
    I think keeping discussions focused on the original topic helps everyone get more useful answers. At the same time, related side discussions can be valuable when they add context or share practical experience. A clear distinction between the main topic and tangential advice makes the community easier to follow.
  • Bold text

    6
    0 Votes
    6 Posts
    2k Views
    M
    Hi everyone, I owe the community an apology. My reply in this thread linked to my own website — that was self-promotional and inappropriate for this forum. The question deserved a straight answer without any link attached. I’m sorry, and it won’t happen again. Thank you to the moderators for keeping this place clean.
  • How come I have two types of fonts in my sentences?

    Locked
    10
    1
    0 Votes
    10 Posts
    3k Views
    PeterJonesP
    Please note: my removal of links above was not to claim that everyone who put in such a link was “spamming” the forum; many of those links helped the original discussion prove a point, and were useful at the time. But what has happened is that bots/spammers keep seeing links to such sites, and trying to spam us with more links. We don’t want to become a link farm, so I have redacted the links, and users who are still curious can perform their own web searches to look for “fancy text generators” to generate the text or “unicode normalization” or “normalize unicode” to undo the fancy text, or use the new Unicode Normalize plugin, discussed here.
  • Vertical tabs with horizontal text?

    14
    1
    0 Votes
    14 Posts
    11k Views
    PeterJonesP
    It looks like @LucaSorvillo took me up on the recommendation: Created new Issue #18496 , so there’s an “open issue” to PR against Created PR#18497 to implement it as a sub-option of the Tab Bar > Behavior > Vertical option
  • LLM contribution policy for Notepad++?

    2
    1 Votes
    2 Posts
    534 Views
    PeterJonesP
    @rdipardo , I got a statement of sorts in regard to this request, specifically, this comment: Using AI to create a PR for an open source project - is it a good thing or a bad thing? I have no judgement on that. For me, the only criterion that matters is whether the merged code will be maintainable in the future. On this point, I have to say that AI-generated PRs (I can usually tell during code review), often do not meet the critera in their current state - but many human devs don’t either.
  • Improving Find in Files performance

    14
    1 Votes
    14 Posts
    1k Views
    Thomas KnoefelT
    Thanks a lot @guy038 for running the whole thing again, this time it didn’t finish in seconds ;-) Nice to see the results panel still usable with almost 10 million hits, even the jump to line 690 in that DLL at the very end. Interesting that walking the whole drive for those 130 PDFs takes almost the entire run, 5m45 of 5m48 for MultiReplace, and it’s the same picture with the other tools. The 4 “not decodable” are most likely UTF-16 files with an odd number of bytes. N++ simply drops the last byte there, the next MultiReplace build will do the same in Find in Files (Replace leaves them alone, writing them back would lose that byte). Speed is next on my list.
  • Feature/improvement suggestion

    2
    0 Votes
    2 Posts
    350 Views
    PeterJonesP
    @Adam-Narkiewicz , (sorry for the slow reply: when I first read your post, I was in the middle of something, and couldn’t go looking for the issues, so I hoped that someone else would reply with similar information. Since no one has, I am doing it now.) Honestly, I believe the bug is in step 5: it shouldn’t do that “check for underlying file existence” when you tell it to Close All (or when just closing one file, as in Issue #11866; or when you tell it to reload a file, as in Issue #18718). The developer tried (per this comment) to find a way around this, but hasn’t found a viable solution yet. After asking whether to keep a file in the editor, Notepad++ closes it no matter what my answer is. For me, since you already said “close all”, I don’t see a problem in Notepad++ closing it. I am not convinced it should’ve asked in the first place. Fortunately, if there are unsaved changes – so if you’ve edited the file, so there are unsaved changes to the file that doesn’t exist anymore – it will interrupt the process and ask you to save it, and when it fails, it stops the process (not the best solution, but better than losing data). So this oddity at least won’t let you lose unsaved changes accidentally when doing Close All for files that have disappeared. So that’s something. asks me whether to keep some deleted files open, but not all That does seem problematic, to me. I guess after doing the single check, it finally believes your request to Close All meant to Close All. In conclusion: Since Issue #11866 exists for the single file-close, I don’t think this needs a separate official issue. I’m glad it’s “not particularly annoying” to you, because it could be a long time (if ever) before a solution can be found.
  • 2 Votes
    3 Posts
    508 Views
    PeterJonesP
    @guy038 , I have also noticed that, recently, the username filter in the advanced search page doesn’t populate usernames. I had thought it might have just been me. I know that @barisusakli from NodeBB occasionally logs in, and they recently updated the forum software for us… maybe that version had a bug, because the admin panel says there’s another version available since they last updated us. Until then, once you make your search, you can edit the URL to set &by=PeterJones to search for my posts (right now, the URL probably has &by= with no value). It’s not as convenient as the drop-down, but it is a workaround.
  • 0 Votes
    6 Posts
    2k Views
    guy038G
    Hello, @Roberts-Rozis, @Peterjones, @dennis-bulgrien, @coises and All, @Coises, I did some tests with my D USB key and with your Search++ plugin and the following generic regexes solve the problem nicely : So, @Roberts-Rozis and @dennis-bulgrien : Select The Plugins > Search++ > Search in Files... option Select your média (C, D, … ) on the left and don’t forget to check the Subfolders option and, possibly, the Hidden files option Select the Reg. exp. option for the Filter : type In the filter box : • For a search of any file, even WITHOUT extension, between level N minimum and M maximum, enter : ^(?:[^\\]+\\){N,M}[^\\]+ • For a search of any file, WITH an extension, between level N minimum and M maximum, enter : ^(?:[^\\]+\\){N,M}[^\\]+\..+ • For a search of any file with the EXACT extension 'txt' or 'log' or 'ini', between level N minimum and M maximum, enter : ^(?:[^\\]+\\){N,M}[^\\]+\.(?:txt|log|ini)$ You may also add a size and/or a date condition Of course, check your desired search options Finally, click on the Find in Files button IMPORTANT : Replace the letters N and M by true digits, with the condition N <= M. The M value may be missing ! The syntax of these regexes are specific to the Search++ These regexes allow any search in an arborescence, from level N minimum to level M maximum. However : You may search from level 0, if necessary You can go through all the structure with the 0, or the N, syntaxes Note that you can simulate the Search++ filtering mode by using one of the regexes below, directly in Notepad++ ^(?:[^\\\r\n]+\\){2,4}[^\\\r\n]+$ ^(?:[^\\\r\n]+\\){2,4}[^\\\r\n]+\..+ ^(?:[^\\\r\n]+\\){2,4}[^\\\r\n]+\.(?:txt|log|ini)$ Against the text below, that you’ll paste in a new tab : 987.txt abc\123.txt abc\def\456.txt abc\def\ghi\789.txt abc\def\ghi\jkl\012.txt abc\def\ghi\jkl\mno\pqr\stu\vwx\yz\999.txt 987.txt abc\123.txt abc\def\456.txt abc\def\ghi\789.ini abc\def\ghi\jkl\012.log abc\def\ghi\jkl\mno\pqr\stu\vwx\yz\999.txt LICENSE abc\LICENSE abc\def\LICENSE abc\def\ghi\LICENSE abc\def\ghi\jkl\LICENSE abc\def\ghi\jkl\mno\pqr\stu\vwx\yz\LICENSE You may also try, for example, the cases {0,3} or {0,} or even {4,}. Enjoy ! Best Regards, guy038