• Curse of the Curly Quotes

    Help wanted · · · – – – · · ·
    2
    0 Votes
    2 Posts
    179 Views
    PeterJonesP
    @William-Fields said in Curse of the Curly Quotes: When pasting code into NP++ from another source, no matter what I do, if the source has curly quotes, the pasted content has curly quotes. Right. That’s because the curly quote characters have different codepoints from ASCII quotemarks. It’s doing the right thing. If you want to convert, then use a regular expression: FIND = [“”] REPLACE = " SEARCH MODE = Regular Expression REPLACE ALL change all curly quotes to straight quotes when opening documents or pasting content There’s no such command or option in Notepad++, because that would be Notepad++ changing characters from one codepoint to another without user interaction, which is the antithesis of text editing https://community.notepad-plus-plus.org/post/102348 The Direct Write ligature-effects from the post you showed is just the fonts changing the appearance of characters based on font ligature rules, but the underlying characters that Notepad++ is presenting are the exact same characters as found on disk. On the other hand, the curly quotes that you are copying and pasting are different characters from the ASCII quote.
  • 1 Votes
    2 Posts
    274 Views
    PeterJonesP
    @martin-honnen , Please be careful when forking and keeping the original name for an apparently-abandoned plugin. Sometimes, it turns out it wasn’t as abandoned as thought – something like that happened with NppConsole plugin (as obliquely mentioned in a recent Topic here): a few years ago, it appeared abandoned, so a regular here took the source code, and made their own fork, but kept the original name (thinking it would be safe, because it appeared to be no longer supported in the original channel); but then, fast forward a few more years, and the original author did provide their own upgrades to the original plugin – so now there are two competing development paths, each having version numbers not present in the chain for the other, which will make any future questions in the forum confusing, as to which NppConsole plugin is actually being talked about. Similarly, if morbac ever decides to come back to the plugin, then your fork and the original could have conflicting and/or confusing version numbers and naming. I would highly recommend coming up with your own name for your product, if you are planning to continue development and support on your version of the plugin. If it’s really just a one-off thing, and you aren’t planning on future bugfixes/improvements/support, then it’s up to you whether it’s worth the rename; but if you want to continue to work on the plugin, then I’d suggest the rename. OTOH: if you can get permission from @morbac to take over completely, then it’s safe to keep the original name, because you’ve got the permission. (It’s most clear, in cases like that, if you can get write permission to the original repo – @chcg was able to do with @bruderstein’s PythonScript, and that sense of continuity makes it more obvious that his is still the “official” PythonScript.)
  • 1 Votes
    9 Posts
    446 Views
    Yellow FolderzipY
    @PeterJones Ah yah, I understand now. I suppose this is a fine solution, so thank you for that. This still requires some finesse to get in front of the 1st column versus just click+dragging inside the margin, but definitely better than before. 😎
  • 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
    4 Posts
    1k Views
    PeterJonesP
    @Steve-Plumlee said in Flickering screen on the latest edit that i've made (like a preview of current and previous state): @GM-Bobby-B Hi I am having the same experience. I suspect this is a new “Feature” but I have been unable to determine where the setting is to turn it off. Did you ever figure it out? @Lycan-Thrope Appreciate your FAQ items but I think this is a feature that was added. Maybe one of the dev’s can answer that Forum search didn’t result in any other posts so maybe it’s a plugin or something? No, if the video that the original poster put in reddit last year is realy what you’re seeing, it’s not a “feature”. @Lycan-Thrope linked to the FAQ because the original poster didn’t give enough version information to be any help. And despite thanking him for the link to the FAQ, neither did you. Share your ?-menu’s Debug Info to let us know what version you are using, and many other things that are often relevant to debugging uncommon problems. That user has never come back to this forum since the original post, so never even saw @Lycan-Thrope’s answer. And the people in Reddit just found that changing the caret blink rate in the preferences “fixed” it for them… though that should have nothing to do with what Notepad++ displays. My guess is that it was really a plugin causing the problem, or that the underlying cause is actually something slowing down the entire computer, causing it to refresh Notepad++'s screen at odd times. If you think it might be a plugin, we’ve got a different FAQ which has a section on diagnosing “Possible Culprit: Plugin”: you should follow the steps included there.
  • 0 Votes
    2 Posts
    150 Views
    Alan KilbornA
    @shodanx2 See HERE.
  • 0 Votes
    5 Posts
    506 Views
    donhoD
    @xomx Thank you for pinging! https://github.com/notepad-plus-plus/notepad-plus-plus/commit/2c1abe0784543e78dbba0f259b0948cf3a08b8cb
  • 0 Votes
    1 Posts
    179 Views
    No one has replied
  • Notepad++ release 8.9.3

    Announcements
    12
    7 Votes
    12 Posts
    9k Views
    donhoD
    @hknet said in Notepad++ release 8.9.3: as usual with a lots of other MSIs we take to the softwareinstallation in the GPO editor, then select “new - package”, select the current npp.8.9.3.Installer.x64.msi file from our GPO deployment path, open it, then select to deploy the package in a customized version (German: Erweitert), but tried all three options in the meantime, all end with the GPO editor reporting that adding the package to the GPO went wrong because the deploymentinformation can not be read (from the package) and we should check if we got the correct softwarepackage… It’s likely that Windows has placed a “Zone.Identifier” alternate data stream on it, marking it as untrusted. If not, please check the network share where npp.8.9.3.Installer.x64.msi is stored has Read permissions for both “Domain Computers” and “Authenticated Users” (or at least your specific admin account).
  • 0 Votes
    5 Posts
    349 Views
    mathlete2M
    I also find that OneDrive folders aren’t always turned on when you first log in/start up; that’s why I preferred using network drives over OneDrive. When you first open a OneDrive folder in File Explorer, there should be a button somewhere that toggles the drive.
  • View only searched lines

    General Discussion
    4
    0 Votes
    4 Posts
    300 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.
  • v8.9.4 RC will be available this weekend (17-19 April)

    Announcements
    1
    3 Votes
    1 Posts
    282 Views
    No one has replied
  • Simple Question: Can I View HTML Tags?

    General Discussion
    3
    0 Votes
    3 Posts
    510 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.
  • Notepad++ not responding

    Help wanted · · · – – – · · ·
    7
    0 Votes
    7 Posts
    25k Views
    PeterJonesP
    @Martin-Bishop said in Notepad++ not responding:. I followed the steps above and was certain it was a new plugin I installed earlier in the day, but the removal of plugin, creating a backup Notepad++ folder in %AppData% and completely uninstalling NP++ before reinstalling it hasn’t fixed anything. For now, the only way to start it is to use the -noPlugin command line argument on my usual shortcut to the program. If using -noPlugin makes it work, that means it’s one of your plugins, or an interaction between multiple plugins, causing the issue. Our freeze/crash/plugin FAQ explains how to try to isolate which plugin is the culprit.
  • NppExec v0.8.11 has been released!

    Notepad++ & Plugin Development
    1
    4 Votes
    1 Posts
    181 Views
    No one has replied
  • 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]
  • Upgrade curl error

    Help wanted · · · – – – · · ·
    2
    0 Votes
    2 Posts
    232 Views
    PeterJonesP
    @Rene-Balduk , Are you in an IT-controlled environment that requires connecting to a proxy to connect to the internet? If so, then you (or someone from IT) will need to launch Notepad++ As Admin, and set ? > Set Updater Proxy to the right value. (127.0.0.1 is your localhost – ie your own computer – and it surprises me that it would be pointing to a proxy on your own machine)
  • 0 Votes
    15 Posts
    1k Views
    Alan KilbornA
    @snafu423 said: since I use the “real” portable version it all works fine And this is the key point of this entire thread!
  • 0 Votes
    5 Posts
    494 Views
    PeterJonesP
    @Phil-Shearer said in Download Status Page Out of Date: hopefully it will all be good again in a week or two As of 2026-Apr-7 (per this post), v8.9.3 has been triggered for Auto-Update, so ? > Update Notepad++ should see a new version available now.
  • About single and duplicate lines...

    General Discussion
    2
    2 Votes
    2 Posts
    557 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.