• Incorporating Prettier and/or js-beautify

    3
    0 Votes
    3 Posts
    1k Views
    PeterJonesP
    @Shobansky , A few months after the original post was made, this FAQ was created, which explains how to use pork2sausage plugin (or the run menu, or the NppExec plugin) to transform text. And since things like Prettier or js-beautify exist, it makes more sense to pass formatting to an external utility that’s customized for a specific programming language, to make users of that programming language happy – rather than relying on limiting the formatting to whatever rules that one developer adds to the editor. (Given the arguments people have over the auto-indentation, and how the developer hasn’t been able to keep everyone happy even on that “simple” aspect of formatting, trying to get a generic formatter to the point that everyone is happy is virtually impossible.) I don’t understand why it doesn’t have some formatting capability like other editors… Every editor has strengths that it focuses its feature development on. Notepad++'s strengths are in the ease and availablilty of plugins and running external applications… so plugins specific to the language (like HTML Tidy) or plugins that launch external programs (like pork2sausage) are the way that Notepad++ made it easy to get formatting customized the way you want it, rather than restricting you to the ability of the N++ developer to support and implement. And the developer’s philosophy is that, unless it’s something that he wants to put his own stamp on, if it’s already been implemented well in a plugin or can be easily run through the run-menu/pork2sausage/nppexec, then he doesn’t want to waste his effort on doing something mediocre built-in when something good-to-great already exists. As someone with a full time job completely unrelated to Notepad++, he wants to focus his limited development time to things that he likes, he wants, or that he can add value to. Moreover, in the modern realm, things are moving toward LSP-based solutions – so if the languages you program in have LSP servers available, then (as was mentioned in this very similar question a few days ago) you can use one of the LSP plugins (the plugin by Kered or @Ekopalypse’s LSP client plugin) – so if your language’s LSP server has the code formatting feature, the LSP plugin you choose should be able to activate that.
  • About ( Ctrl + F ) ...

    2
    1
    -2 Votes
    2 Posts
    345 Views
    PeterJonesP
    @ioc2e3 , This is a copy of your GitHub issue. But I don’t think anyone has any clue what you actually want or are asking about. Could you please clarify what you’re asking about? Is it something that only happens if you use that specific localization, or does it happen in English as well?
  • Notepad++ 8.9.4 (x86)EXE Upgrade Leaves Duplicate ARP Entry

    Moved
    3
    0 Votes
    3 Posts
    877 Views
    donhoD
    @metaad Please try this one: https://github.com/donho/notepad-plus-plus/releases/tag/TEST
  • 8.9.4 installation shows error for AppX call

    2
    0 Votes
    2 Posts
    263 Views
    xomxX
    @Bodenseematze said in 8.9.4 installation shows error for AppX call: I don’t know the exact message Probably(?) the same as in the https://community.notepad-plus-plus.org/post/105358
  • Very small problem

    5
    3
    0 Votes
    5 Posts
    439 Views
    U
    @Uwo222777 Of course, the program itself should return the encoding to its original form, but… it doesn’t do this.
  • Enhancement of the COLUMN EDITOR feature

    5
    0 Votes
    5 Posts
    578 Views
    guy038G
    Hi, @alan-kilborn and All, Of course, I could use your method to achieve my goal but that is just the reason why I wanted this enhancement which should avoid any further operation !! BTW, this idea occured to me while I was writing this other post : https://community.notepad-plus-plus.org/topic/27511/surprising-regular-expression In the meanwhile, I’ve found out a nice work-around to realize that goal ! Let’s imagine that you want to do a list of 743 empty lines exactly ( I chose that number as it’s a prime number ). Then : Open a new tab Within N++ Hit the Enter key just once Open the Replace dialog ( Ctrl + H ) Uncheck all box options Check the Wrap around option ONLY Select the Regular expression search mode FIND \R REPLACE $0$0 Click 10 times on the Replace All button => You should get a total of 1,025 lines ( Note that, after each replacement N, the number of lines increases to the value 2 × N + 1 ) The trick is to repeat the process up to the first number which is greater than 743 ! Now, open the Search > Go to... option ( Ctrl + G ) Search for the line 744 ( so 743 + 1 ) Then, select to the very end of file with the Ctrl + Shift + End shortcut And finally, hit the Delete key => It should remain the expected 743 lines ! I readily admit that all the different tasks of my work-around do not take long. However, I still think that a new field Total insertion number, in the Column Editor dialog, filled with the value 743, would have been more elegant and straightforward ! Best Regards, guy038
  • 0 Votes
    2 Posts
    347 Views
    EkopalypseE
    @Rex-Theodore You can always use the Run menu to call up the formatters with the current buffer. However, since you mentioned that you use Python, you can use the PythonScript plugin and trigger an action whenever you receive a NOTIFICATION.FILESAVED. If you want more features, you might want to check out Kereds or my LSP client for Notepad++. However, this means that the languages you use must have an LSP server.
  • 0 Votes
    7 Posts
    606 Views
    xomxX
    @Olyfant22 There really are substantial differences in between the Win10 & Win11 in this area. I know about 2: SMB signing enforcement in 24H2+ and stricter token isolation (the later one should be solvable by that mentioned “EnableLinkedConnections”)
  • The Column count of Zenkaku chr. is 1?

    2
    0 Votes
    2 Posts
    209 Views
    CoisesC
    @Hiroki-H1974 said in The Column count of Zenkaku chr. is 1?: So, the position is not the same even if Col: count is same because the line contains some Zenkaku chrs. I don’t know Japanese; please forgive me if I’ve missed the point in some way. The column (“col:”) in the status bar is just a count of characters from the beginning of the line, starting at one. (That’s not even always what you might expect; combining characters that form a single visible character are still counted separately.) Aside from a few things like cursor positioning, line wrapping and selection with the mouse, Notepad++ (like the Scintilla control it uses for editing) doesn’t concern itself with the physical space occupied by characters. In English, we can use a proportional font, and a line of twelve characters will show the next “column” as 13, whether they are IIIIIIIIIIII or WWWWWWWWWWWW. So (though I haven’t attempted to test it), regardless of font, I would expect that there would be no recognition of the difference between half-width and full-width characters.
  • Virtual Key Codes Update

    4
    1 Votes
    4 Posts
    606 Views
    pbarneyP
    @PeterJones Thanks for the quick update to the manual! Maintaining technical documentation across versions is a major undertaking when there’s an integrated development team within major corporations; I can’t imagine how herculean that job must be when you’re not side-by-side with a lone developer, so thank you for the excellent work on it. I really do appreciate your speedy response and update. I tried to post the second part of my list yesterday, but I was delayed by the “time between posts” counter, and unfortunately had to leave before it reset. However, you might want to double check your list against the FAQ, to let us know if the FAQ is missing any. I’ll go ahead and do that. Thanks again!
  • Terminal window in a N++ tab

    8
    0 Votes
    8 Posts
    869 Views
    PeterJonesP
    @arnaud-derette said in Terminal window in a N++ tab: i think i get it : It does not handle correctly 4K screen. That does not surprise me. Notepad++ is still not great for high-DPI environments, and it’s been taking a long time to finish some of the last-remaining high-DPI issues. And if the main app, with lots of contributors, still has issues, then it should come as no surprise that the plugins, which usually only have one developer (if they remain interested), whose skillset usually focuses on the feature that their plugin implements, rather than on the generics of all the edge cases of modern win32 coding. (At least, I know that’s true for me on my plugin(s).) I don’t have a High-DPI environment, so I don’t know and can’t test for you, but maybe the NppExec plugin handles high-DPI better than NppConsole does (whether the original, or the intermediate fork)
  • Preview value color RGB, HEX, HSL.

    preview color previewcolors
    21
    0 Votes
    21 Posts
    14k Views
    PeterJonesP
    @tauniaxd , I have added the ability to do rgba(0,127,127,0.05)-type colors to the on-demand script at https://github.com/pryrt/nppStuff/blob/main/pythonScripts/nppCommunity/21xxx/21044-ColorizeHtmlCssColors.py [image: 1776539472904-1e6ece19-b4de-4475-b379-0649d96b2d4f-image.png] If you prefer full underline, then change lines 24 and 26 of the script to use INDICATORSTYLE.PLAIN instead of INDICATORSTYLE.DASH [image: 1776539591564-aa370073-5db8-4431-b80e-7ffc21b3c61c-image.png]
  • 0 Votes
    2 Posts
    215 Views
    Alan KilbornA
    @shodanx2 See HERE.
  • View only searched lines

    4
    0 Votes
    4 Posts
    372 Views
    CoisesC
    @Giuseppe-Aiosa-0 said in View only searched lines: is there any function or existing plugin to view/extract only those line which match the tezt search? If you like to experiment, I am working on a plugin for search which includes a Show command that hides all lines and then shows just the ones with matches. It’s still a work in progress, but everyone is welcome to try it and offer bug reports, suggestions and complaints. See this thread for ongoing discussion; go here to find the latest version.
  • Simple Question: Can I View HTML Tags?

    3
    0 Votes
    3 Posts
    564 Views
    Mister AlexM
    Yes—Notepad++ doesn’t automatically strip HTML, but copying through plain-text mode (like Notepad or Reader View) removes all tags. To retain <p> and <br>, avoid pasting via plain text—either paste directly into Blogger’s HTML view and clean unwanted code manually, or use an HTML cleaner tool to keep only specific tags instead of stripping everything.
  • How to Remove "Edit with Notepad++" from the Right-Click Context Menu

    5
    0 Votes
    5 Posts
    5k Views
    MarkusBodenseeM
    And please don’t forget the easiest solution, just uncheck the option to install the Context Menu Entry during Notepad++ installation. [image: 1775845639874-5769799f-767f-43f8-9077-4fa41520f267-grafik.png]
  • About single and duplicate lines...

    2
    2 Votes
    2 Posts
    650 Views
    Evelyn WalkerE
    @guy038 said in About single and duplicate lines...: About single and duplicate lines… General Discussion 1 posts 1 posters 225 views guy038 Mar 24, 2026, 8:45 PM Hello, All, Reading that post made me realize that searching for single or duplicate lines is a very common task. Some time ago, for my personal workflow, I had written a method to solve the main cases ! So, in this post, I’m going to show you, from an original file, how to keep : All single lines, ONLY All duplicate lines, ONLY All single lines and the first copy of all duplicate lines All single lines and the last copy of all duplicate lines The first copy of all duplicate lines, ONLY The last copy of all duplicate lines, ONLY I’ll use a file, named Test_File.txt, that both contains single lines and duplicate lines that appear in 2, 3, 4 or more times. It contains 48 color palettes, found from various sites and added one after another, giving a total of 78,117 records whose 39,532 are single lines and 38,585 are duplicate lines. On the other hand, if we count one copy of all the duplicates, this file contains 11,290 different duplicate lines. To test my solutions, simply download this UTF-8 file ( 5,937,560 bytes ) from my Google Drive account : https://drive.google.com/file/d/1aYOpKon4KYw_NXSdj4Tm4Ti_FrygC2ky/view?usp=sharing Remarks : Note the definition of single lines : these are lines that differ in characters and/or case from all the other lines of the current file. For example, in this small file of 14 lines, below : ABC xyz 123 789 HIJ HIJ 123 AbC 123 HIJ abc HIJ 456 xyz The 5 lines ABC, AbC, abc, 789 and 456 are considered to be single lines, as different in chars and/or case from all the other lines. The 3 123 lines are considered to be a duplicate line with 3 copies ( Multiple occurrences ) The 2 xyz lines are considered to be a duplicate line with 2 copies ( Multiple occurrences ) Les 4 HIJ lines are considered to be a duplicate line with 4 copies ( Multiple occurrences ) IMPORTANT : I’ve done some of the work for you, by adding a final column that numbers all lines in this file. Thus, is will be easy to restore the original order of the remaining records, after that each processing is complete. So, in case you need this initial order : Put the caret right before the present number, at the end of the first line Run the Edit > Begin/End Select in Column Mode option ( or use the Alt + Shift + B shortcut ) Move to the last line of the file Put the caret right before the present number, at the end of the last line Run again the Edit > Begin/End Select in Column Mode option ( or use the Alt + Shift + B shortcut ) => A ZERO-LINE column mode selection should appear throughout all the lines Then, run the Edit > Line Operations > Sort Lines Lexicographically Ascending option => The original order of the remaining records, AFTER completion of one of the 6 methods below, should be back ! In each procedure, below, 1 or 2 S/R are used. To process them : First, cancel any existing selection to ensure that any line-end character will be taken in account during the S/R phase Open the Replace dialog ( Ctrl + H ) Uncheck all box options Check the Wrap around option Select the Regular expression search mode Click on the Replace All button (1) To keep all the SINGLE lines ONLY ( 39,532 records ) : Paste the Text_File.txt contents in a new tab Switch to that new tab and select all text ( Ctrl + A ) Run the Edit > Line Operations > Sort Lines Lexicographically Ascending option Click anywhere, in the new tab, to cancel the entire selection SEARCH (?x-is) ^ ( .+ ) .{7} \R (?: \1 .{7} \R )+ REPLACE Leave EMPTY Perform the IMPORTANT section, above (2) To keep all the DUPLICATE lines ONLY ( 38,585 records = 78,117 - 39,532 ) : Paste the Text_File.txt contents in a new tab Switch to that new tab and select all text ( Ctrl + A ) Run the Edit > Line Operations > Sort Lines Lexicographically Ascending option Click anywhere, in the new tab, to cancel the entire selection SEARCH (?x-is) ^ ( .+ ) .{7} \R (?: \1 .{7} \R )+ (*SKIP) (*F) | ^ .+ \R REPLACE Leave EMPTY Perform the IMPORTANT section, above (3) To keep all the SINGLE lines and the FIRST copy of ALL the DUPLICATE lines, found AFTER the sort ( 50,822 records ) : Paste the Text_File.txt contents in a new tab Switch to that new tab and select all text ( Ctrl + A ) Run the Edit > Line Operations > Sort Lines Lexicographically Ascending option Click anywhere, in the new tab, to cancel the entire selection SEARCH (?x-is) ^ ( ( .+ ) .{7} \R ) (?: \2 .{7} \R )+ REPLACE \1 Perform the IMPORTANT section, above (4) To keep all the SINGLE lines and the LAST copy of all the DUPLICATE lines, found AFTER the sort ( 50,822 records ) : Paste the Text_File.txt contents in a new tab Switch to that new tab and select all text ( Ctrl + A ) Run the Edit > Line Operations > Sort Lines Lexicographically Ascending option Click anywhere, in the new tab, to cancel the entire selection SEARCH (?x-is) ^ ( .+ ) .{7} \R (?: \1 .{7} \R )* ( \1 .{7} \R ) REPLACE \2 Perform the IMPORTANT section, above (5) To keep the FIRST copy of all the DUPLICATE lines ONLY, found AFTER the sort ( 11,290 = 50,822 - 39,532 ) : Paste the Text_File.txt contents in a new tab Switch to that new tab and select all text ( Ctrl + A ) Run the Edit > Line Operations > Sort Lines Lexicographically Ascending option Click anywhere, in the new tab, to cancel the entire selection SEARCH (?x-is) ^ ( .+ ) .{7} \R (?: \1 .{7} \R )+ (*SKIP) (*F) | ^ .+ \R REPLACE Leave EMPTY Then : SEARCH (?x-is) ^ ( ( .+ ) .{7} \R ) (?: \2 .{7} \R )+ REPLACE \1 Perform the IMPORTANT section, above (6) To keep the LAST copy of all the DUPLICATE lines ONLY, found AFTER the sort ( 11,290 = 50,822 - 39,532 ) : Paste the Text_File.txt contents in a new tab Switch to that new tab and select all text ( Ctrl + A ) Run the Edit > Line Operations > Sort Lines Lexicographically Ascending option Click anywhere, in the new tab, to cancel the entire selection SEARCH (?x-is) ^ ( .+ ) .{7} \R (?: \1 .{7} \R )+ (*SKIP) (*F) | ^ .+ \R REPLACE Leave EMPTY Then : SEARCH (?x-is) ^ ( .+ ) .{7} \R (?: \1 .{7} \R )* ( \1 .{7} \R ) REPLACE \2 Perform the IMPORTANT section, above At the very end of any of these choices, you may delete the extra numeration : SEARCH (?x-s) .{7} $ REPLACE Leave EMPTY Then run the Edit > Blank Operations > Trim Trailing Space Best Regards, guy038 P.S. : Note that there is also a native way to get all the single lines and the first copy of all the duplicate lines, found with the present order ( 50,822 records ) : Paste the Text_File.txt contents in a new tab Switch to that new tab Delete the numeration, at end of each line : SEARCH (?x-s) .{7} $ REPLACE Leave EMPTY Then, use the Edit > Line Opérations > Remove Duplicate lines option That’s a pretty solid breakdown 👍 For most cases though, I’d honestly just go with the built-in “Remove Duplicate Lines” unless you specifically need first/last occurrences. Way simpler and less error-prone. The regex approach is powerful, but yeah… a bit overkill unless you’re dealing with very specific cases or large datasets.
  • Archive of Notepad++ versions

    archiving
    4
    0 Votes
    4 Posts
    691 Views
    PeterJonesP
    @George-0 said in Archive of Notepad++ versions: I checked this link but it is not that relevant. Why do you think that? The README that @Murray-Sobol-1 linked to starts with, You can find all the old Notepad++ releases - from the very first version 1.0 up to v6.9.2 - here That’s 100% relevant to the original question “does any people have an notepad++ installers from version 1.0-4.x.x?” And if you then follow the link in that README to the Releases page, there are a few pages of releases. The first page has all the v1 installers/downloads, all the v2 installers/downloads, all the v3 installers/downloads, all the v4 installers/downloads (split into groups), and all the v5 installers/downloads (split into groups). And clicking to the second page gives all the v6 installers/downloads (split into groups). If that’s not relevant, then there is no answer to the original question that is relevant. Fortunately, it is obviously relevant: I was quite happy that the Developer listed to the feedback of the users, and re-published all those old installers so that people can still go grab the older copies of the application. He didn’t have to, and I appreciate that he did.
  • No-save buffer, for log barf I don't want to save

    2
    0 Votes
    2 Posts
    237 Views
    PeterJonesP
    @robstoddard , Personally, I just have a file named Peter's Scratchpad.txt that’s always open, where I paste things like that (and, admittedly, things that started like that but have just stayed around in that file for a lot longer than originally intended). And if I save the “temporary data” in the file, who cares? I just delete the stuff out of the file that I don’t need anymore when I don’t need them anymore. That way, I can just Save All or use the Auto-Save plugin as much as I want, without having to ask for a specific feature to “not save this one thing”.
  • Showing EOL characters

    2
    0 Votes
    2 Posts
    302 Views
    PeterJonesP
    @DougB-MFY , Not exactly, but you might get “close enough” With keyboard+mouse, the shift+scrollwheel would allow you to horizontally scroll without clicking (but having to use the scrollwheel isn’t truly “keyboard”) [END] [space] [backspace] seems to work for me, but it introduces a “fake edit” to get it, so that might annoy you One of those might be “close enough” for you. But there isn’t a keystroke that does it on its own