• HexEditor Plugin Compare Hex Dimmed

    Aug 4, 2024, 12:28 PM
    0 Votes
    4 Posts
    2k Views

    @PeterJones ,
    Doh…I guess I should have tried that, too. :sigh: Oh well, that’s why there’s many eyes here just for that reason.
    Just a note, I still don’t like the way it resets my UI menu items to white, and also missing files options, even when the two compared files are closed. So I’ve uninstalled it again. Luckily, I don’t often compare binary files.

  • 0 Votes
    6 Posts
    2k Views

    Installation via Plugins Admin will be possible in the next release of Notepad++ https://github.com/notepad-plus-plus/nppPluginList/pull/795

    Any other issues with the plugin should be sent here: https://github.com/rdipardo/npp_preview/issues

  • Disable opening image files

    Aug 2, 2024, 5:31 PM
    0 Votes
    11 Posts
    876 Views

    @wicked-clown said in Disable opening image files:

    I need to only open htm files but it loads images to when i drag and drop.

    Most things that show a list of files offer a way to filter the list by file type or extension.

    For example, with Windows Explorer type Ctrl-F to get to the search box in the upper-right corner and type ext:htm to only see the HTML files. You can then drag/drop what is shown into Notepad++ and there should be no image files.

  • g code into document.

    Aug 2, 2024, 6:35 PM
    0 Votes
    2 Posts
    734 Views
  • 0 Votes
    2 Posts
    254 Views

    @Arsalan-M ,

    Notepad++ doesn’t currently have that option. When it installs, it adds an “Edit With Notepad++” for all files, not just known filetypes; you can either keep that for current behavior, or disable it (following the instructions in my final paragraph).

    That feature is useful to people who suddenly get a file with a non-normal extension, and want to be able to use the right-click to open it. Or people who do use Notepad++ for looking at binary files (maybe with the HexEdit plugin), so would not find it out of the ordinary to look at a .png file in that setup.

    The issue with this is that there are a lot of apps with useless or nonsensical submenu entries

    Notepad++ is adding one entry – because many users over decades of use want it and/or have at least grown accustomed to it being there. In fact, when Windows 11 changed the way that applications must interact to get their “Edit with Notepad++” entry, there were many, MANY complaints to this forum and directly to the Developer, begging (no, insisting) that Notepad++ put itself back in the main right-click menu.

    causes loading times at some point

    Loading times of what? Notepad++'s loading time shouldn’t be influenced by whether or not is has an entry in the OS Right Click menu. And I would find it hard to believe, without hard data, that Notepad++'s single entry in the right click menu measurably increases the time to load the right click menu, or to load another application, or to load/boot the OS. Do you have real data that proves otherwise – for Notepad++ (not just “some other apps entries slow it down, so I feel like I can claim that Notepad++'s does”)?

    However, if you don’t like that entry: If you get rid of Notepad++'s C:\Program Files\Notepad++\contextMenu\NppShell.dll (you might have to follow the uninstall/unregister instructions in the user manual’s Right Click > Manual Installation/Registration section before it will allow you to remove it), then reboot, then the all-filetypes Right Click entry won’t be there. You would then have to use the OS’s “Open With” feature from the Right Click menu, instead of Notepad++'s specific entry, to allow right-click and/or double-click access for a given filetype (depending on whether you say “always open with Notepad++” or not).

  • How to change Tab key behavior

    Mar 8, 2021, 11:51 PM
    0 Votes
    6 Posts
    3k Views

    @Hellena-Crainicu ,

    Those are the keystrokes for indenting or unindenting while editing. The original post (from three years ago, which was already sufficiently and correctly answered) was asking how to change whether the Tab key would insert spaces or ASCII tab characters, not asking how to indent or unindent.

  • 0 Votes
    4 Posts
    5k Views

    @Hellena-Crainicu ,

    Those are the keystrokes for indenting or unindenting while editing. It has nothing to do with this 4-year-old question about how to change tabs (that is, change which file is active when you have multiple files open in Notepad++), which was already correctly and completely answered four years ago.

  • 0 Votes
    2 Posts
    393 Views

    @Luis-Piña-III said in Assigning a Shortcut Key to Python script.:

    I installed Python script and successfully created a new script but have no idea how to assign a shortcut to it.

    Well an obvious place to look might have been the FAQ posts, specifically:
    this post.

    Terry

  • Insert new lines

    Aug 1, 2024, 12:48 PM
    0 Votes
    5 Posts
    516 Views

    hello @gerdb42

    It works very well. your kungfu is powerful. thank you very much for the help. and thank you for the link, I will look into it.

  • Pop-under during install

    Aug 1, 2024, 9:03 AM
    1 Votes
    2 Posts
    384 Views

    @Graham-Norris

    The place to report bugs is found by reading HERE.

  • 0 Votes
    13 Posts
    2k Views

    I made some silly mistakes (several syntax errors) in the AWK script above. Also, the additional code in the END block won’t print the total number of times each prefix appeared as I intended. This script does, however:

    { split($0, Parts, /:/) # Parts[1] <- text before the ":". if (!(Parts[1] in Prefixes)) { # If we've NOT seen this prefix ... print Parts[1] # ... print it. } Prefixes[Parts[1]]++ # Count this prefix. } END { for (p in Prefixes) { # Print # of times we saw each one. printf("Prefix '%s' appeared %d times.\n", p, Prefixes[p]) } }
  • 0 Votes
    10 Posts
    2k Views

    @Terry-R said in search something and replace it with the file name of the file at hand:

    @Christos-Glavopoulos-adjuster-GR

    With a test file open in Notepad++ complete the following:

    Menu option Macro, then Start Recording. Ctrl + Home key. This places the cursor at the very start of the file. Use the Find function with the string/regex (see Note-1 below) to find the string. Click on Find Next, then click Close. So at this point the string you are searching for should be highlighted. Menu option Edit, then select Copy to Clipboard. At this point you need to identify which sub-option you want. It will most likely be “Copy Current Filename”, but you may want the first option “Copy Current Full File Path” which includes the path with the filename. Ctrl + V. Paste the clipboard content to the current cursor position. Ctrl + S then Ctrl + W. Save current file and then close current file. Menu option Macro, then Stop Recording.

    I have tried your solution @Terry-R and it worked like a charm.

    Many many Thanks

    Christos

  • 0 Votes
    2 Posts
    389 Views

    @TwiceCake said in Data corrupt after upgrade to 8.6.9:

    I have important notes.

    The content is all disappear.

    Does anyone encounter same problem too?

    Yes, a key common element is people who fail to back up or make copies of their important notes.

    Take a look at FAQ: Periodic Backup vs AutoSave as it’s possible you had already enabled one of the backup mechanism that are available for Notepad++.

  • 0 Votes
    6 Posts
    2k Views

    logi-tech said:

    What If I wanted to search for a specific number for example : 3XXXXX5849

    This user has asked the same question three times in three different threads. At this point, I’m pretty sure they’re a bot fishing for upvotes.

    We should stop dignifying them with replies until they prove they’re human.

  • -1 Votes
    2 Posts
    229 Views

    @logi-tech
    Use the Find/replace form (Search->Find... from the main menu).
    Find what: 3[0-9]{5}5849
    Search Mode: Regular Expression

    Here’s a useful reference on the regular expression I wrote. You could also use 3\d{5}5849 for the same effect.

  • Notepad++ for. Android

    Jul 29, 2024, 5:45 AM
    0 Votes
    3 Posts
    487 Views

    @Ekopalypse said in Notepad++ for. Android:

    @Arthur-Verburg

    Is there any way to have notepad++ working in android?

    No, because Npp relies on the Windows API.

    If not so is there something like it?

    I don’t know.

    Thank you

  • 0 Votes
    8 Posts
    962 Views

    Had the same issue… was creating a new cmd file, edit, and then the first line would just clear one pressing Enter, removed the scintilla commands for enter and tab and seems to work fine. Issue came out of the sudden, last intervention I did was adding autohotkey support. Thanks, A Former User!

    On a 2nd note, it introduced a new bug, new line is now not CRLF but CR only regardless of the settings. So I’ve removed the shortcut entries for the scintilla on the changes made prior, all are default now, but that batch enter bug will eventually return.

  • I have trouble with notepad++

    Jul 25, 2024, 2:39 PM
    0 Votes
    4 Posts
    315 Views

    @x-RushRix

    It works for me.
    770ca08f-4e0e-4b13-b910-10f14ceb9843-image.png

    What theme are you using? What is your Settings > Style Configurator > Language: Global Styles > Style: Selected text colour setting (the one I showed in the screenshot)

    If you are using multiple selections at the same time, then what’s your Style: Multi-selected text colour setting, as shown here:
    bfa480d4-5492-421a-8834-cb6dcdce4438-image.png

    It may be that your theme is out of date, and missing some of the newer styles (like the Multi-selected text colour). If you are missing any of the entries in the Style: column as compared to my Style Configurator screenshots, you will want to follow the instructions that I give to Bas de Reuver in this post in the “No text on selected line” discussion.

    Also, there are known issues with the plugins CSV Lint and Compare Plus – and others may have a similar problem as well – as was discussed in the full “No text on selected line” discussion: in the screenshots in the first post there, you can see that the selection actually caused the text to be hidden, even though the Style Configurator had values for a normal selection. That’s one of the reasons I asked for your ? > Debug Info – so that we could see if you are using one of the known-problematic plugins; unfortunately, you chose to not answer that question. If you don’t have “CSV Lint” or “Compare Plus” plugins, you might want to follow the steps in this FAQ to narrow down which plugin might be the culprit.

  • 0 Votes
    3 Posts
    583 Views

    @Michael-Madison said in Replacing A unique ID value with another based on a reference table in multiple text files:

    I am sure this has been covered, in one way or another, but the searches come up with very code heavy solution that leave me clueless, and I have zero idea what i am doing.

    Unfortunately, the problem you described is best dealt with using either code or a data management tool. Notepad++ is a text editor. While you can use Notepad++'s search/replace to do some crude data management tasks you end up with stuff that is both hard to create and harder to maintain.

    I’ll use the idea proposed by @Mark-Olson and show this example. Let’s say we have a list of ten 6-digit WELL numbers and their corresponding 14-digit numbers.

    729647 01816277784739 832291 05203379882010 323016 08529698086864 852429 25301745193483 613474 43535571764114 421123 69712418942707 495790 62415119153289 901250 16906577703160 214509 29859837478695 936045 11344788176363

    A search/replace on multiple files of:
    Search: (?-i)(?<=^WELL,")(?:(729647)|(832291)|(323016)|(852429)|(613474)|(421123)|(495790)|(901250)|(214509)|(936045))(?="$)
    Replace: (?1(01816277784739))(?2(05203379882010))(?3(08529698086864))(?4(25301745193483))(?5(43535571764114))(?6(69712418942707))(?7(62415119153289))(?8(16906577703160))(?9(29859837478695))(?10(11344788176363))

    will translate files containing

    WELL,"729647" WELL,"832291" WELL,"323016" WELL,"852429" WELL,"613474" WELL,"421123" WELL,"495790" WELL,"901250" WELL,"214509" WELL,"936045"

    into files containing

    WELL,"01816277784739" WELL,"05203379882010" WELL,"08529698086864" WELL,"25301745193483" WELL,"43535571764114" WELL,"69712418942707" WELL,"62415119153289" WELL,"16906577703160" WELL,"29859837478695" WELL,"11344788176363"

    You can expand that search/replace to deal with 20, maybe 30, translations at a time. The issue is that there’s a 1000 to 2000 character limit how long search/replace expressions can be. My example works for dealing with ten values at a time. I did not push the concept to see what the limit is. You said you had thousands of values meaning you would need to construct dozens, and possibly hundreds, of search/replace operations and to run them on all the data files.

    This is an area where code shines vs dealing with it in Notepad++ alone as code can easily deal with translating a value such as 421123 into the desired 69712418942707. You run that on all your files and you will have the 14-digit WELL values.